[XML-SIG] parsing chinese characters

Fabian López fabian at syameses.com
Mon Oct 22 20:45:09 CEST 2007


Hi,
I am parsing an XML file that includes chineses characters, like ^
ÔuÔuà¢à¢²ÅÊDZw.¼ššìéLï³²ÅÊÇÛ or ¥Ø¥¢¥¢¥¤¥í¥ó... The problem is that I get an error like:
UnicodeEncodeerror:'charmap' codec can't encode characters in position....
The thing is that I would like to ignore it and parse all the characters
less these ones. So, could anyone help me? I suppose that I can catch an
exception that ignores it or maybe use any function that detects this
chinese characters and after that ignore them.

Thanks!!
Fabian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20071022/a9f0b8d2/attachment.htm 


More information about the XML-SIG mailing list