http://smcv.pseudorandom.co.uk/ 2013-11-29 08:44:12 -04:00 committed by admin
parent 1d4d139912
commit 68987ed560
1 changed files with 9 additions and 0 deletions

View File

@ -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]]