Re: [xml] python, xml, utf8->iso-8859-2 problem



On Mon, Feb 17, 2003 at 08:09:09PM +0100, Pavel Stehule wrote:
element.newChild(None,"beta","¾lutý kùò")

  Your error. What encoding is that string ? I MUST be UTF8, it
doesn't loom like it is

print  doc.serialize("iso-8859-2")
[...]
output conversion failed due to conv error
Bytes: 0xBE 0x6C 0x75 0x74
xmlOutputBufferFlush: encoder error

  read http://xmlsoft.org/encoding.html
All tree operation must be UTF8

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]