encoding problems

Damjan gdamjan at gmail.com
Wed Aug 29 11:37:50 EDT 2007


> 
> is there a way to sort this string properly (sorted()?)
> I mean first 'a' then 'à' then 'e' etc. (sorted puts accented letters at
> the end). Or should I have to provide a comparison function to sorted?

After setting the locale...

locale.strcoll()


-- 
damjan



More information about the Python-list mailing list