From 9548f9bf9316d3f336873c03071c7ad8128928ba Mon Sep 17 00:00:00 2001 From: smcv Date: Mon, 8 Sep 2014 16:25:09 -0400 Subject: [PATCH] not WTF-8 --- ..._non-ascii_characters_in_body_in_web_interface.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: ~~~~ -- 2.45.0