[reportlab-users] UTF-8 and Bookmark

Marius Gedminas reportlab-users@reportlab.com
Fri, 25 Oct 2002 13:14:58 +0200

On Tue, Oct 22, 2002 at 05:40:28PM +0200, Jo-Bader@gmx.de wrote:
> in other words 
> the revers of this nice function :-)
> def utf8(code):
>     "Convert a given UCS character index into UTF-8"

There's parse_utf8 in ttfonts.py, which takes a UTF-8 string and returns
a list of UCS character codes.


Marius Gedminas
Veni, Vidi, VISA:  I came, I saw, I did a little shopping.