[reportlab-users] accentuated chars and TTF fonts

Nicholas Wieland nicholas_wieland at yahoo.it
Wed Aug 10 08:31:49 EDT 2005


Well, I've read it :)
I really don't know what's happening here, the string I'm trying to insert inside the table is just "Liquidit¨¤ e Obbligazionario", and I get a:
 
Error Value: 'utf8' codec can't decode bytes in position 4-6: invalid data
 
I've tried to print the string and the result (on a DOS shell) is:
 
Liquidit¦Á e Obbligazionario
(look at the a ...)
 
This is what I'm trying to do:
descr = unicode ('%s' % (result ['descr']), 'utf-8')
 
But I've tested a lot of combinations, like result ['descr'].encode ('utf-8') and result ['descr'].decode ('latin-1').encode ('utf-8') ...
 
Always an error.
If I try with a standard font everything's fine, Tahoma (and Rina, for example) will not work.
Someone that uses TTF and ¨°¨¤¨´¨¨¨¬ with RL ?
 
TIA,
  ngw

andy at reportlab.com ha scritto: 
> I need to have "¨°¨¤¨´¨¨" chars in a table, and I'm using "Tahoma".
> Reportlab returns a UnicodeError.
> This is a huge problem, as I'm italian :)

The user guide should have a good section on this stuff:
Chapter 3, "Fonts and Encodings". You must make sure
your data matches the fonts you selected. You can build it
from reportlab/docs, or read the one here:

http://www.reportlab.com/docs/userguide.pdf


Andy Robinson

-----Original Message-----
From: Nicholas Wieland 
To: reportlab-users at reportlab.com
Sent: Wed, 10 Aug 2005 11:48:41 +0200 (CEST)
Subject: [reportlab-users] accentuated chars and TTF fonts


ngw


Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
_______________________________________________
reportlab-users mailing list
reportlab-users at reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users
_______________________________________________
reportlab-users mailing list
reportlab-users at reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users

		
---------------------------------
Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20050810/db458ebd/attachment.html


More information about the reportlab-users mailing list