[reportlab-users] Unicode for tables

anu radha anuradha256 at yahoo.co.in
Tue Dec 19 08:02:32 EST 2006


Hi Dani,

Thank u for the replay.
I tried.I am able to generate the pdf file but with black boxes. I am using greek ,russian etc languages.
I tried with utf-8 also but I am not successed.
Please help me out.

Regards,
Anuradha



I need to unicode the table content.
I am passing list to table object (t1 = Table(data, None, None))
How to unicode the table content.



try something like this:

def u(x): return unicode(x, 'cp1251')

t1 = Table(u(data), None, None)

The previous works only for paragraph.

For table:
def u(x): return unicode(x, 'cp1251')
data = [map(u, row) for row in data]

t1 = Table(data, None, None))

Regards, Dani




Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20061219/0b1933c5/attachment.htm


More information about the reportlab-users mailing list