[Product-Developers] Re: z3c.form UnicodeDecodeError
Daniel Widerin
daniel.widerin at kombinat.at
Fri Apr 3 14:04:20 UTC 2009
Martin Stadler schrieb:
>
> Am 03.04.2009 um 15:39 schrieb Daniel Widerin:
>>>
>> It seems that archetypes is using utf-8 strings and z3c.form is using
>> unicodes. i'm a bit confused...
>>
>
> Sorry, I can't help but read this to find out that your statement is
> really confused: http://evanjones.ca/python-utf8.html
>
> Martin
sys.getdefaultencoding() was set to ascii. unicode(value) tries to
unicode(value, 'ascii') and this fails if value contains 'ö' or 'é' chars.
for me setting default encoding to 'utf-8' solves that problem.
thanks
More information about the Product-Developers
mailing list