utf - string translation
Eric Brunel
eric_brunel at despammed.com
Thu Nov 23 03:35:20 EST 2006
On Wed, 22 Nov 2006 22:59:01 +0100, John Machin <sjmachin at lexicon.net>
wrote:
[snip]
> 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
'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-'])"
More information about the Python-list
mailing list