convert Unicode to lower/uppercase?

Peter Otten __peter__ at web.de
Fri Sep 19 07:28:56 EDT 2003


nospam wrote:

> Has someone got a Python routine or module which converts Unicode
> strings to lowercase (or uppercase)?

Toiled and came up with:

>>> print u"abcäöüß".upper()
ABCÄÖÜß

>>> u"ABCÄÖÜ".lower()
u'abc\xe4\xf6\xfc'

Peter




More information about the Python-list mailing list