How transliteration works?
Jonathan Nieder
jrnieder@gmail.com
Fri Apr 1 17:16:00 GMT 2011
Hi again,
Urmas wrote:
> Why does locale involved in this? It means that I will have
> different results using f.ex. "ASCII//TRANSLIT" as destination
> charset when using different locales?
Yes, transliteration is locale-dependent. For example:
$ echo coöperation | LANG=en_US.UTF-8 iconv -f UTF8 -t ASCII//TRANSLIT
cooperation
$ echo Hölder | LANG=en_DE.UTF-8 iconv -f UTF8 -t ASCII//TRANSLIT
Hoelder
Which makes a certain sense. Transliteration tends to preserve
the pronunciation of a word.
Perhaps the "recode" program would give results more to your taste.
More information about the Libc-help
mailing list