utf - string translation
eric_brunel at despammed.com
Thu Nov 23 09:35:20 CET 2006
On Wed, 22 Nov 2006 22:59:01 +0100, John Machin <sjmachin at lexicon.net>
> So why do you want to strip off accents? The history of communication
> has several examples of significant difference in meaning caused by
> minute differences in punctuation or accents including one of which you
> may have heard: a will that could be read (in part) as either "a chacun
> d'eux million francs" or "a chacun deux million francs" with the
> remainder to a 3rd party.
It may not be to store or even use the actual text. I stumbled on a
problem like this some time ago: I had some code building an index for a
document and wanted the entries starting with "e", "é", "è" or "ê" to be
in the same section...
python -c "print ''.join([chr(154 - ord(c)) for c in
More information about the Python-list