[reportlab-users] How to insert Chinese Simplified (multibyte) into Table
zhihua ouyang
reportlab-users@reportlab.com
Fri, 17 Jan 2003 05:23:37 +0000
Hi, all:
I am learning reportlab and am trying to replace 'North',
'South', 'East' and 'West' with Chinese simplified (multibyte)
in reportlab/test/test_platypus_tables.py:
...........
def getTable():
t = Table((('','North','South','East','West'),
('Quarter 11',100,200,300,400),
('Quarter 22',100,400,600,800),
('Total',300,600,900,'1,200')),
(72,36,36,36,36),
(24, 16,16,18)
)
return t
........
If I replace 'North', 'South', 'East' and 'West'
with Chinese Simplified directly in test_platypus_tables.py,
I can not see those Chinese titles in the generated pdf file
instead of strange characters.
I saw the example of "draw" Chinese in reportlab/test/test_multibyte_chs.py
but don't know how to apply it to the above example.
Can any body help me?
Thanks in advance.
Ouyang
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail