how to decode rtf characterset ?

Stef Mientki stef.mientki at
Mon Feb 1 12:14:13 CET 2010


I want to translate rtf files to unicode strings.
I succeeded in remove all the tags,
but now I'm stucked to the special accent characters,
like :


the character "ó" is represented by the string r"\'f3",
or in bytes: 92, 39,102, 51

so I think I need a way to translate that into the string r"\xf3"
but I can't find a way to accomplish that.

Any suggestions are very welcome.

Stef Mientki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list