From be18ded062cae3df2a8a3d06cb9182470da55586 Mon Sep 17 00:00:00 2001 From: david-sarah Date: Wed, 29 Dec 2010 19:44:22 -0800 Subject: [PATCH] docs/webapi.rst: typos. --- docs/frontends/webapi.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/frontends/webapi.rst b/docs/frontends/webapi.rst index 4c993587..ea6ada67 100644 --- a/docs/frontends/webapi.rst +++ b/docs/frontends/webapi.rst @@ -1911,16 +1911,16 @@ Coordination Directive" sections of `mutable.rst <../specifications/mutable.rst> encode non-ASCII names in URLs (`RFC3986#2.1 `_). We prefer the convention that the ``filename=`` argument shall be a - URL-encoded UTF-8 encoded Unicode string. + URL-escaped UTF-8 encoded Unicode string. For example, suppose we want to provoke the server into using a filename of "f i a n c e-acute e" (i.e. f i a n c U+00E9 e). The UTF-8 encoding of this is 0x66 0x69 0x61 0x6e 0x63 0xc3 0xa9 0x65 (or "fianc\\xC3\\xA9e", as python's ``repr()`` function would show). To encode this into a URL, the non-printable - characters must be escaped with the urlencode ``%XX`` mechansim, giving us - "fianc%C3%A9e". Thus, the first line of the HTTP request will be + characters must be escaped with the urlencode ``%XX`` mechanism, giving + us "fianc%C3%A9e". Thus, the first line of the HTTP request will be "``GET /uri/CAP...?save=true&filename=fianc%C3%A9e HTTP/1.1``". Not all browsers provide this: IE7 by default uses the Latin-1 encoding, which is - fianc%E9e (although it has a configuration option to send URLs as UTF-8). + "fianc%E9e" (although it has a configuration option to send URLs as UTF-8). The response header will need to indicate a non-ASCII filename. The actual mechanism to do this is not clear. For ASCII filenames, the response header -- 2.45.2