[I18n-sig] Changing case
M.-A. Lemburg
mal@lemburg.com
Tue, 11 Apr 2000 13:40:57 +0200
mark.mcmahon@eur.autodesk.com wrote:
>
> Hi,
>
> I can't seem to figure this out..
>
> >>> s = unicode('\204\202', 'latin-1')
> >>> s
> u'\204\202'
> >>> s.upper()
> u'\204\202')
>
> Is this something that unicode should be able to do? Am I using the wrong
> encoding?
>
> 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
> out
Those two characters don't have a lower/upper case mapping:
0080;<control>;Cc;0;BN;;;;;N;;;;;
0081;<control>;Cc;0;BN;;;;;N;;;;;
0082;<control>;Cc;0;BN;;;;;N;BREAK PERMITTED HERE;;;;
0083;<control>;Cc;0;BN;;;;;N;NO BREAK HERE;;;;
0084;<control>;Cc;0;BN;;;;;N;INDEX;;;;
.lower() and .upper() only modify chars which do have such a
mapping -- all others are left untouched.
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/