Re: ignoring chinese characters parsing xml file
- From: limodou <limodou@xxxxxxxxx>
- Date: Tue, 23 Oct 2007 15:05:20 +0800
On 10/23/07, Fabian López <fabian@xxxxxxxxxxxx> wrote:
Hi,Sorry, that's not Chinese but Japanese. And I don't know which
I am parsing an XML file that includes chineses characters, like
^??啖啖才是?.???锍才是? 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.
encoding is in the source xml, because most of xml files should be
encoded in utf-8, and it'll be ok for CJK characters, and how did you
get this error?
--
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
meide <<wxPython UI module>>: http://code.google.com/p/meide/
My Blog: http://www.donews.net/limodou
- Prev by Date: Re: Iteration for Factorials
- Next by Date: Re: Need help parsing with pyparsing...
- Previous by thread: Re: ignoring chinese characters parsing xml file
- Next by thread: for loop
- Index(es):
Relevant Pages
|