[BangPypers] Handling unicode characters in xml.dom

Gurpreet Sachdeva gurpreet.sachdeva at gmail.com
Tue Mar 18 06:08:18 CET 2008


Any idea how to handle the unicode characters existing in an xml file while
parsing it.

This is what I am doing:

from xml.dom import minidom
xmlObj = minidom.parse(fileobj)

And the script throws an error because of some special characters [
'f(3gpÕ¡¤ë'] present in the xml file. Any suggestion/pointers would be

Thanks and Regards,
Gurpreet Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/bangpypers/attachments/20080318/067be27e/attachment.htm 

More information about the BangPypers mailing list