sorting slovak utf
Radovan Garabik
garabik-news-2002-02 at kassiopeia.juls.savba.sk
Mon Dec 8 08:49:54 EST 2003
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)
--
-----------------------------------------------------------
| Radovan Garabík http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
More information about the Python-list
mailing list