[Zope3-dev] server error in apidoc (encoding pb)
Dmitry Vasiliev
dima at hlabs.spb.ru
Tue Jan 16 16:44:27 EST 2007
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."""
--
Dmitry Vasiliev (dima at hlabs.spb.ru)
http://hlabs.spb.ru
More information about the Zope3-dev
mailing list