2

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?
MERose
  • 527
  • 1
  • 10
  • 24
  • 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
  • Now how can I update my C library? I thought, my Ubuntu updates automatically on a daily basis?! – MERose Dec 25 '14 at 21:07
  • Daily updates are only security updates (or similar). But Ubuntu Utopic (14.10) should have a recent enough glibc (not tried, though). – vinc17 Dec 26 '14 at 01:39

0 Answers0