Ralph Meijer wrote:
On 2009-02-18 14:57, Gabriel Rossetti wrote:
Ralph Meijer wrote:
On 2009-02-18 12:14, Gabriel Rossetti wrote:
[..]
>>
Parser input is expected to be a string, not unicode. Try this instead:

  parser.parse(tmp.toXml().encode('utf-8'))

ralphm

Hello Ralphm,

yes, I had fixed that in the code attached in my last msg, it only works in Eclipse though.

Ah, but in /that/ code, you typed:

    res = rawXmlToElement("<t>reçu</t>")

While you should have:

    res = rawXmlToElement(u"<t>reçu</t>")

ralphm

Ahh, yes, I see my error, thanks :-) I'm glad everything is unicode in python 3....

Gabriel

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to