[reportlab-users] TTF, Platypus & Unicode...

Dinu Gherman reportlab-users@reportlab.com
Tue, 30 Jul 2002 13:03:27 +0200


Marius Gedminas:

> Latin-1 is very different from UTF-8.  (Actually the encoding of the
> first 128 characters matches, but the rest is different.)  If you have
> Python 1.6 or later you can use stuff like
>
>   utf8_string = unicode(latin1_string, "ISO-8859-1").encode("UTF-8")

That's basically what I did in the test script as well, and it
also just replaces the accented character with a blank. Have
you run the file locally?

Dinu