Re: Wanted: python script to convert to/from UTF-8 to/from XML Entities

2008-08-30 Thread Fredrik Lundh
Siegfried Heintze wrote: Does someone have a little python script that will read a file in UTF-8/UTF-16/UTF-32 (my choice) and search for all the characters between 0x7f-0xff and convert them to an ASCII digit string that begins with "&#" and ends with ";" and output the whole thing? If no

Wanted: python script to convert to/from UTF-8 to/from XML Entities

2008-08-30 Thread Siegfried Heintze
Does someone have a little python script that will read a file in UTF-8/UTF-16/UTF-32 (my choice) and search for all the characters between 0x7f-0xff and convert them to an ASCII digit string that begins with "&#" and ends with ";" and output the whole thing? If not, could someone tell me h