From: smcv Date: Mon, 8 Sep 2014 20:25:09 +0000 (-0400) Subject: not WTF-8 X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/9548f9bf9316d3f336873c03071c7ad8128928ba?ds=sidebyside not WTF-8 --- diff --git a/doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn b/doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn index b5967e5f6..0047830d6 100644 --- a/doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn +++ b/doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn @@ -17,6 +17,16 @@ anarcat@marcos:ikiwiki$ echo "P�re" | hd 00000007 ~~~~ +> I don't know what that is, but it isn't the usual double-UTF-8 encoding: +> +> >>> u'è'.encode('utf-8') +> '\xc3\xa8' +> >>> u'è'.encode('utf-8').decode('latin-1').encode('utf-8') +> '\xc3\x83\xc2\xa8' +> +> A packet capture of the incorrect HTTP request/response headers and body +> might be enlightening? --[[smcv]] + Clicking on the Cancel button yields the following warning: ~~~~