diff options
author | http://smcv.pseudorandom.co.uk/ <smcv@web> | 2013-11-29 08:44:12 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2013-11-29 08:44:12 -0400 |
commit | 68987ed560d45b005c15cbb87d6713cbdfc3ea3a (patch) | |
tree | b52c219268a0c97af2565a523a861c682641a365 /doc/bugs | |
parent | 1d4d139912f616f0b6c940efaeaeecc66299149e (diff) | |
download | ikiwiki-68987ed560d45b005c15cbb87d6713cbdfc3ea3a.tar ikiwiki-68987ed560d45b005c15cbb87d6713cbdfc3ea3a.tar.gz |
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/crashes_in_the_python_proxy_even_if_disabled.mdwn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/bugs/crashes_in_the_python_proxy_even_if_disabled.mdwn b/doc/bugs/crashes_in_the_python_proxy_even_if_disabled.mdwn index 4e54e5df4..26896b303 100644 --- a/doc/bugs/crashes_in_the_python_proxy_even_if_disabled.mdwn +++ b/doc/bugs/crashes_in_the_python_proxy_even_if_disabled.mdwn @@ -50,3 +50,12 @@ error: ikiwiki failed > $ > > So I am not sure what is going on here... --[[anarcat]] + +>> Python is decoding what it receives from IkiWiki using the default `ascii` +>> codec. To match IkiWiki's "all source text is UTF-8" assumption, the +>> Python proxy should explicitly decode incoming text from bytes +>> (`str`) to `unicode` using the `utf8` codec instead. +>> +>> Python's conservative default is "`ascii`, regardless of locale" - +>> this minimizes the chance of silently incorrect decoding, but +>> unfortunately also maximizes the chance of crashing. --[[smcv]] |