This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: How transliteration works?
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.