On 11/12/03 9:31 PM +0100 "Martin v. Löwis" <martin at v.loewis.de> wrote: > That said, locale.strcoll does what you want. It does? >>> locale.strcoll(unicode('Universität','utf8'),u'University') Traceback (most recent call last): File "<stdin>", line 1, in ? UnicodeError: ASCII encoding error: ordinal not in range(128) >>> locale.setlocale(locale.LC_COLLATE,'en_US') Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/locale.py", line 372, in setlocale return _setlocale(category, locale) locale.Error: locale setting not supported Even if locale would allow me to set a locale, which locale should I set, in order to allow all unicodes (not just e.g. iso-8859-1, but all of them) to be collated in some reasonable order? -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4