[XML-SIG] wstring encode
Gabor Melis
gabor.melis@essnet.se
Wed, 24 Nov 1999 15:24:01 +0200
Yes, it throws a ConvertError exception. I think what you propose is
a good way to solve this problem, but unfortunately ;-) I found
another solution to my problem which doesn't require this.
Escaping legal (for a given encoding) characters is an other matter
and the application should handle that, just as toxml() does in the
xml.dom module.
Sorry about the big latency, G
On 22-Nov-99 MIME :dieter@handshake.de wrote:
> Hello Gabor
>
> > OK, I have figured out how to encode() with wstring, but the
> second
> > question still stands.
> What does "wstring.encode" does, when it hits a non-encodable
> character? Does it raise an exception?
>
> What about providing an error handler to "wstring/wstrop".
> The default error handler does, what is now done.
> An application specific error handler might implement the
> character reference encoding. By the way, what should
> your encoder do with "&" that happens to be part of your
> string.
>
> - Dieter
>
>
>