It appears that iconv
cannot, for example, replace the letter Ø
. It was also noted in the second answer to https://stackoverflow.com/questions/3371697/replacing-accented-characters-php
I have two questions:
- Can I make
iconv
tell me which diacritics it did not convert? - Is there a list of diacritics,
iconv
doesn't support?
echo 'éèôØ' | iconv -t ascii//translit
outputseeoOE
as expected. – vinc17 Dec 25 '14 at 18:38us-ascii
. I will check it out whetherascii
is a better transliteration target. – MERose Dec 25 '14 at 18:57us-ascii
is the same, but you may need a more recent C library (under GNU/Linux, GNU libc 2.19, not eglibc). – vinc17 Dec 25 '14 at 19:04echo 'éèôØ' | iconv -t ascii//translit
outputseeoOE
butecho 'éèôØ' | iconv -t us-ascii//translit
gives meeeo?
. Not for you? – MERose Dec 25 '14 at 19:16ascii//translit
orus-ascii//translit
, I get the same output:eeoOE
with GNU libc 2.19 (Debian/testing 8.0),eeo?
on older machines. – vinc17 Dec 25 '14 at 20:15