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
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):
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
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 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 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 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
Sorry I have not been able to find a better title, please see the
attached example which may be more descriptive.
Here is what it does:
* set up an SSH connection
* open a TCP forwarding channel through this connection
* do something through the tunnel that will trigger an errback (in the
(posting it a second time with the example code inlined as pipermail did
not like the attachment)
Sorry I have not been able to find a better title, please see the
attached example which may be more descriptive.
Here is what it does:
* set up an SSH connection
* open a TCP forwarding channe
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
10 matches
Mail list logo