gl...@divmod.com wrote:
On 18 Feb, 02:26 pm, gabriel.rosse...@arimaz.com wrote:
Ahh, yes, I see my error, thanks :-) I'm glad everything is unicode
in python 3
Erm, input to the parser will still be bytes in python 3. The failure
mode will hopefully be more obvious, but it's not that
On 18 Feb, 02:26 pm, gabriel.rosse...@arimaz.com wrote:
Ahh, yes, I see my error, thanks :-) I'm glad everything is unicode in
python 3
Erm, input to the parser will still be bytes in python 3. The failure
mode will hopefully be more obvious, but it's not that "everything" is
unicode
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 fi
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
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
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 in
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 :
class __RawXmlToElement(object):
def __call__(self, s):
self.result = None
def onStart(el):
Hello,
I wrote some code to transform a raw XML string into a domish.Element,
and I keep on getting char encoding/decoding errors :
class __RawXmlToElement(object):
def __call__(self, s):
self.result = None
def onStart(el):
self.result = e