strxfrm works with unicode string ?

nicolas.riesch at genevoise.ch nicolas.riesch at genevoise.ch
Fri Jun 17 06:22:46 EDT 2005


Gruëzi, Gerald ;-)

Well, ok, but I don't understand why I should first convert a pure
unicode string into a byte string.
The encoding ( here, latin-1) seems an arbitrary choice.

Your solution works, but is it a workaround or the real way to use
strxfrm ?
It seems a little artificial to me, but perhaps I haven't understood
something ...

Does this mean that you cannot pass a unicode string to strxfrm ?

Bonne journée !




More information about the Python-list mailing list