[Zope3-dev] server error in apidoc (encoding pb)

Christophe Combelles ccomb at free.fr
Wed Jan 17 04:19:12 EST 2007


Dmitry Vasiliev a écrit :
> Christophe Combelles wrote:
>> Did someone have a look on this error ? Is it a trivial thing, or a 
>> local configuration problem, or is it reproduceable?
>> (I write in utf-8, and I put # -*- coding: utf-8 -*- in my interfaces.py)
> 
> You must use unicode docstrings. The encoding declaration at the top of 
> the module doesn't do any magic by itself but just tells Python from 
> which encoding unicode strings can be decoded.
> 
> So your module should looks like this:
> 
> # -*- coding: utf-8 -*-
> u"""Some docstring text in utf-8."""
> 

That's it, that was actually trivial, I forgot the 'u' :)

thanks


More information about the Zope3-dev mailing list