David Barnett added the comment:
I guess it must be more complicated than it looks, because I thought checking
for unicode strings and doing .encode('utf-8') would help at least some cases
without making anything worse.
Anyways, if it's too hard or not worth fixing "correctly", couldn't we at least
do something to prevent a crash? Maybe strip out / replace special characters
and try again?
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list