Ignoring incorrect XML encoding declarations

Peter Scott sketerpot at chase3000.com
Wed Jan 15 19:52:46 EST 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