in reply to Re: Sorting utf-8
in thread Sorting utf-8
But locales and unicode don't mix well:
perldoc perlunicode:
"Use of locales with Unicode data may lead to odd results. Currently,Perl attempts to attach 8 bit locale info to characters in the range 0..255, but this technique is demonstrably incorrect for locales that use characters above that range when mapped into Unicode. Perls Unicode support will also tend to run slower. Use of locales with Unicode is discouraged." ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^I would have thought Unicode::Collate is the correct way to go when sorting utf8 encoded data. But, looking at the docs, I couldnt make head or tail of it - it assumes you to know an awful lot about "Unicode Technical Standard #10"
If your current locale is, say, es_ES, how do you actually instantiate the correct Unicode::Collate object for that locale?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Sorting utf-8
by dakkar (Hermit) on Apr 24, 2003 at 11:58 UTC | |
by Anonymous Monk on Apr 24, 2003 at 12:54 UTC | |
|
Re: Re: Re: Sorting utf-8
by webelan (Acolyte) on Apr 24, 2003 at 13:37 UTC | |
by Anonymous Monk on Apr 24, 2003 at 15:08 UTC | |
by richyboy (Acolyte) on Apr 24, 2003 at 21:58 UTC |