[issue11597] Can't get ConfigParser.write to write unicode strings

R. David Murray report at bugs.python.org
Fri Mar 18 18:25:37 CET 2011

R. David Murray <rdmurray at bitdance.com> added the comment:

>>> str(u"\u0411")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0411' in position 0: ordinal not in range(128)

So, clearly configparser in 2.x doesn't support unicode.  Now the question is, is this a bug or would adding support be a feature? (If the latter it can't be fixed in 2.7.)  I'll leave the answer to that question up to Lucaz.

assignee:  -> lukasz.langa
nosy: +lukasz.langa, r.david.murray

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list