ignoring chinese characters parsing xml file

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Oct 22 22:20:16 CEST 2007

On Mon, 22 Oct 2007 21:24:40 +0200, Fabian López wrote:

> I am parsing an XML file that includes chineses characters, like ^
> uu啖啖才是w.扉L锍才是 or ヘアアイロン... The problem is that I get an error like:
> UnicodeEncodeerror:'charmap' codec can't encode characters in
> position..

You say you are *parsing* the file but this is an *encode* error.  Parsing
means *decoding*.

You have to show some code and the actual traceback to get help.  Crystal
balls are not that reliable.  ;-)

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list