[I18n-sig] Changing case
Tue, 11 Apr 2000 13:40:57 +0200
> I can't seem to figure this out..
> >>> s = unicode('\204\202', 'latin-1')
> >>> s
> >>> s.upper()
> Is this something that unicode should be able to do? Am I using the wrong
> Or would I have to have a particular codec to have a mapping between lower
> and uppercase characters.
> Sorry if this is basic and obvious - but as I said I can't seem to figure it
Those two characters don't have a lower/upper case mapping:
0082;<control>;Cc;0;BN;;;;;N;BREAK PERMITTED HERE;;;;
0083;<control>;Cc;0;BN;;;;;N;NO BREAK HERE;;;;
.lower() and .upper() only modify chars which do have such a
mapping -- all others are left untouched.
Python Pages: http://www.lemburg.com/python/