sorting slovak utf
Stano Paska
paska at kios.sk
Mon Dec 8 11:44:03 EST 2003
Another thing I forgot to write...
I have windows xp, python 2.3.2
Stano.
Radovan Garabik wrote:
> Stano Paska <paska at kios.sk> wrote:
>
>>Hi,
>>
>>I have one problem.
>>In file aaa.txt I have slovak letters in utf-8.
>>
>
>
> ...
>
>
>>I tried:
>>import locale
>>locale.setlocale(locale.LC_CTYPE, 'sk_SK.utf-8')
>>and
>>locale.setlocale(locale.LC_CTYPE, ('sk_SK', 'utf-8'))
>>but i got "unsupported locale" error
>>
>>What I must do to get correct sorting result?
>
>
> you probably do not have sk_SK.UTF-8 locale generated
> what OS, version are you using?
> What is the output of locale -a ?
> In some linux distributions, e.g. debian, you have to
> generate the locale beforehaned, with locale-gen
> (according to /etc/locale.gen file)
>
>
More information about the Python-list
mailing list