[issue5398] strftime("%B") returns a String unusable with unicode
Amaury Forgeot d'Arc
report at bugs.python.org
Sun Mar 1 14:58:18 CET 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Ezio is correct: in general a string cannot be added to a unicode.
Except for the simplest case (only 7bit ascii characters), you have to
decode the string:
u"" + datetime.datetime( 2009, 3, 1 ).strftime("%B").decode('utf-8')
----------
nosy: +amaury.forgeotdarc
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5398>
_______________________________________
More information about the Python-bugs-list
mailing list