[Zope3-dev] Re: unicode problems !?
j.kartnaller
j.kartnaller at robotech.at
Fri Oct 8 07:35:13 EDT 2004
Stephan Richter wrote:
> On Friday 08 October 2004 03:01, j.kartnaller wrote:
>
>>1.
>>If a doc-string contains non ascii data (eg. german umlaut) I get the
>>following error :
>>
>>UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 4:
>>ordinal
>>not in range(128)
>
>
> If you have umlauts in the doc string, you must make it a unicode text.
> Example:
>
> def func():
> u"""This is the docstring with an umlaut: ü"""
>
> The doc tool has no way of guessing the encoding you may have used.
>
I tried this without a change in the behavior !
Regards
Jürgen
More information about the Zope3-dev
mailing list