[issue1609] test_re.py fails

Guido van Rossum report at bugs.python.org
Wed Dec 19 23:45:15 CET 2007


Guido van Rossum added the comment:

> Replacing Turkish characters with hex versions in test2.py still results
> in UnicodeDecodeError and works with python 2.4.

I'm hoping Martin can confirm this, but I suspect that this is due to
a tightening of the rules for converting from 8-bit strings to unicode
strings.

What happens if you change to unicode("....", "utf-8")?

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1609>
__________________________________


More information about the Python-bugs-list mailing list