Message158341
| Author |
loewis |
| Recipients |
Christian.Clauss, ezio.melotti, loewis, r.david.murray |
| Date |
2012年04月15日.15:50:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334505056.36.0.0441811962104.issue14587@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In addition to R. David's remark, it also works fine in a German locale. In general, you cannot know whether the byte '\xe4' denotes 'ä' or some other letter. For example, in KOI8-R, it denotes Д, instead, which already is an upper-case letter. So either do setlocale at the start of your program, or (better) switch to Unicode strings.
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print u'ä'.upper()
Ä |
|