>I'm having some headaches with this and don't know how to fix it. For
>now I've changed all the files to ASCII and it works fine, but when I
>save it in UTF-8 the site has some encoding problems. Just for
>illustration, I use non-english caracters in model's verbose name.

Django is by default configured for utf-8 output, so if your strings
are encoded in utf-8, everything should work fine. But that has nothing
to do with gettext - with gettext all message IDs (the standard strings
used in the source) are in english and are only ascii. utf-8 or other
encodings only happen in the .po file.

There are special caveats for using non-ascii strings in Python source
code - details are in the PEP 0263. And you have to make sure that your
strings are encoded in the encoding you define in your settings file
(or utf-8 if you didn't define one yourself).

bye, Georg

Reply via email to