On 4/20/05, Lars Yencken <[EMAIL PROTECTED]> wrote:
> I'm trying to render a Japanese font to an image, but I'm having some 
> problems.
[...]
>     desiredText = unicode('nothing 日本語 appears', 'utf8').encode('euc_jp')

I don't know if you are literally including Japanese characters in
your source code, as you appear to be doing here, but unless you have
an encoding declaration in your module, this won't work - by default,
Python source code only handles ASCII characters.

Try using Unicode escapes for the Japanese characters, or reading the
characters from a file using an appropriate codec stream reader. That
might help. (If it doesn't, I'm afraid I can't help you :-))

Paul.
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to