Python parsing iTunes XML/COM
william tanksley
wtanksleyjr at gmail.com
Wed Jul 30 20:53:53 EDT 2008
william tanksley <wtanksle... at gmail.com> wrote:
> I'm still puzzled why I'm getting some non-Unicode out of an
> ElementTree's text, though.
Now I know.
Okay, my answer is that cElementTree (in Python 2.5) is simply
deranged when it comes to Unicode. It assumes everything's ASCII.
Reference: http://codespeak.net/lxml/compatibility.html
(Note that the lxml version also doesn't handle Unicode correctly; it
errors when XML declares its encoding.)
This is unpleasant, but at least now I know WHY it was driving me
insane.
> -Wm
-Wm
More information about the Python-list
mailing list