Wanted: python script to convert to/from UTF-8 to/from XML Entities
- From: "Siegfried Heintze" <siegfried@xxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 09:38:50 -0700
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-0xffffff 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 how to write one?
How about a script to do the inverse?
Thanks!
siegfried
.
- Follow-Ups:
- Re: Wanted: python script to convert to/from UTF-8 to/from XML Entities
- From: Fredrik Lundh
- Re: Wanted: python script to convert to/from UTF-8 to/from XML Entities
- Prev by Date: Re: Picking up resource forks and extended attributes on Mac OS X ?!
- Next by Date: Re: Wanted: python script to convert to/from UTF-8 to/from XML Entities
- Previous by thread: Re: Picking up resource forks and extended attributes on Mac OS X ?!
- Next by thread: Re: Wanted: python script to convert to/from UTF-8 to/from XML Entities
- Index(es):