]> sipb.mit.edu Git - ikiwiki.git/commitdiff
not WTF-8
authorsmcv <smcv@web>
Mon, 8 Sep 2014 20:25:09 +0000 (16:25 -0400)
committeradmin <admin@branchable.com>
Mon, 8 Sep 2014 20:25:09 +0000 (16:25 -0400)
doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn

index b5967e5f6d964f9ce3996e81485635627ac55019..0047830d6bbbf1dbb1bf0f8baad846ae9a35a717 100644 (file)
@@ -17,6 +17,16 @@ anarcat@marcos:ikiwiki$ echo "P�re" | hd
 00000007
 ~~~~
 
 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:
 
 ~~~~
 Clicking on the Cancel button yields the following warning:
 
 ~~~~