[reportlab-users] RE: any help plz .... (sarah el-lawindy)

Marc Stober reportlab-users@reportlab.com
Thu, 6 Nov 2003 09:17:41 -0500


You can easily convert your Unicode string to UTF as such:

If this is your string:

	st = u'hello'

Use this when you call the ReportLab functions:
	
	st.encode('utf-8')

For example:

	story.add(Paragraph(st.encode('utf-8'), style)) # do this

Instead of:
	
	story.add(Paragraph(st, style)) # don't do this

Did you ever get a copy of a Right-To-Left function for ReportLab? Do you
know I could download it? I don't really need it for my work, but I did
Hebrew typesetting once at another job (by typing backward!) so I'm just
curious to see it.

- Marc