[New-bugs-announce] [issue11597] Can't get ConfigParser.write to write unicode strings

the_isz report at bugs.python.org
Fri Mar 18 18:08:04 CET 2011

New submission from the_isz <the_isz at gmx.de>:

Hey everyone,

I'm having issues writing unicode strings with ConfigParser.write. I don't know
if this is python's fault or my own but I couldn't find help on this, neither by
googling, nor by asking on the python irc channels.

Attached to this description I'll add an example script reproducing the error
and hope that someone will enlighten me on what I'm doing wrong.

It seems that this only occurs in python2, doing the same with python3 (omitting
the u before the unicode string), everything works fine.

Thanks in advance!

components: Extension Modules
files: test.py
messages: 131339
nosy: the_isz
priority: normal
severity: normal
status: open
title: Can't get ConfigParser.write to write unicode strings
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file21280/test.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list