[XML-SIG] Weirdness (bug?) with smart_len (wasRe: Issues with Unicode type)

Martin v. Loewis martin@v.loewis.de
25 Sep 2002 19:32:03 +0200


Eric van der Vlist <vdv@dyomedea.com> writes:

> Weird, isn't it?

That's a known bug in Python 2.2, which has been fixed in Python
2.3. MAL says the fix cannot be backported to 2.2.2, since it
requires bumping the pyc revision.

I recommend to use

  unicode("your-string-as-utf8","utf-8")

instead of

  u"your-string-as-unicode-literal"

Regards,
Martin