Ignoring incorrect XML encoding declarations

Peter Scott sketerpot at chase3000.com
Thu Jan 16 01:52:46 CET 2003


 > .replace('UTF-16','UTF-8')
 > then let SAX at it..
Forgive my newbiehood, but is it possible to wrap a string in a 
file-like object? I'm passing a file to the parser, wrapped in an 
InputSource object, and I don't think that you can do .replace on files.

-Peter





More information about the Python-list mailing list