Ralph Meijer wrote:
On 2009-02-18 12:14, Gabriel Rossetti wrote:
Hello,
I wrote some code to transform a raw XML string into a
domish.Element, and I keep on getting char encoding/decoding errors :
[..]
parser.parse(tmp.toXml())
> [..]
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.
Gabriel
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python