<type 'unicode'>

Martin v. Löwis loewis at informatik.hu-berlin.de
Mon May 6 12:58:04 EDT 2002


"Billy Ng" <kwokng at earthlink.net> writes:

> Thanks guys!  I have one more question.  In the xml doc, I have already
> defined
> 
> <?xml version='1.0' encoding="UTF-8"?>
> 
> How come it still returns me unicode?

Because the DOM is defined to operate on Unicode objects. Why do you
think that declaring the encoding in the file should matter for that?

Regards,
Martin




More information about the Python-list mailing list