Thanks - it was exactly as you said 

--- Kent Johnson <[EMAIL PROTECTED]> wrote:

> Most likely your XML file is 16-bit unicode, not
> utf-8. When ascii text 
> is represented as unicode, every other byte will be
> a null byte. That is 
> the extra character that shows up as a space or box
> depending on who is 
> interpreting it. The utf-8 codec must be swallowing
> the null bytes.
> 
> In your code above, instead of utf-8 try utf_16_be
> and utf_16_le, one of 
> them should work.





                
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to