[New-bugs-announce] [issue5398] strftime("%B") returns a String unusable with unicode

t.steinruecken report at bugs.python.org
Sun Mar 1 13:40:02 CET 2009


New submission from t.steinruecken <t.steinruecken at service4every1.de>:

import locale
import datetime

locale.setlocale(locale.LC_ALL, ('de_DE', 'UTF8'))
print u""+datetime.datetime( 2009, 3, 1 ).strftime("%B")
--------------------------------------
Traceback (most recent call last):
    print u""+datetime.datetime( 2009, 3, 1 ).strftime("%B")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1:
ordinal not in range(128)

----------
messages: 82958
nosy: t.steinruecken
severity: normal
status: open
title: strftime("%B") returns a String unusable with unicode
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5398>
_______________________________________


More information about the New-bugs-announce mailing list