[reportlab-users] Unicode for tables
Yordanka Budinova
d.budinova at gmail.com
Tue Dec 19 06:26:21 EST 2006
2006/12/19, Yordanka Budinova <d.budinova at gmail.com>:
>
>
>
> 2006/12/19, anu radha <anuradha256 at yahoo.co.in>:
> >
> > Hi,
> >
> > 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.
> >
> > Regards,
> > Anuradha
> >
> > Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
> > Download Now! http://messenger.yahoo.com/download.php
> >
> > _______________________________________________
> > reportlab-users mailing list
> > reportlab-users at reportlab.com
> > http://two.pairlist.net/mailman/listinfo/reportlab-users
> >
> >
> >
> Hi, Anuradha,
> try something like this:
>
> def u(x): return unicode(x, 'cp1251')
>
> t1 = Table(u(data), None, None)
Sorry,
The previous works only for paragraph.
For table:
data = [map(u, row) for row in data]
t1 = Table(data, None, None))
Regards, Dani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20061219/55872fcf/attachment.html
More information about the reportlab-users
mailing list