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:

  1. Can I make iconv tell me which diacritics it did not convert?
  2. Is there a list of diacritics, iconv doesn't support?
  • What do you mean? echo 'éèôØ' | iconv -t ascii//translit outputs eeoOE as expected. – vinc17 Dec 25 '14 at 18:38
  • Hmm, interesting. I am converting to us-ascii. I will check it out whether ascii is a better transliteration target. – MERose Dec 25 '14 at 18:57
  • us-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:04
  • Really? echo 'éèôØ' | iconv -t ascii//translit outputs eeoOE but echo 'éèôØ' | iconv -t us-ascii//translit gives me eeo?. Not for you? – MERose Dec 25 '14 at 19:16
  • Whether I use ascii//translit or us-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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.