[reportlab-users] TrueType and German Umlaut

Dinu Gherman reportlab-users@reportlab.com
Tue, 11 Feb 2003 11:52:32 +0100


Dirk Holtwick:

> Everything works fine if you strip the chars "=E4=F6=FC" from the =
abvoe=20
> example. If I change the string to unicode the parser says that it=20
> doesn't like non ascii stuff.

Hmm, are you sure your font really defines these characters?

In any case, I used to have some success in the past with a
function suggested by Marius:

   def latin1toUTF8(s):
     return unicode(s, "iso-8859-1").encode("utf-8")

to convert text to Unicode before passing it to Platypus, but
I can't quickly reproduce this using the Rina font and umlauts...
Maybe you can...

Dinu

--
Dinu C. Gherman
......................................................................
"I tremble for my country when I reflect that God is just, that His
justice will not sleep forever." (Thomas Jefferson)

--
Dinu C. Gherman
......................................................................
"I value the friend who for me finds time on his calendar, but
I cherish the friend who for me does not consult his calendar."
(Robert Brault)=