How to fix weird issue with iconv on Mac Os x
Posted
by thomas mery
on Stack Overflow
See other posts from Stack Overflow
or by thomas mery
Published on 2009-04-30T09:55:50Z
Indexed on
2010/03/27
1:03 UTC
Read the original article
Hit count: 510
Hi all,
I am on Mac Os X 10.5 (but I reproduced the issue on 10.4)
I am trying to use iconv to convert an UTF-8 file to ASCII
the utf-8 file contains characters like 'éàç'
I want the accented characters to be turned into their closest ascii equivalent
so
my command is this :
iconv -f UTF-8 -t ASCII//TRANSLIT//IGNORE myutf8file.txt
which works fine on a Linux machine
but on my local Mac Os X I get this for instance :
è => 'e
à => `a
I really dont undersatnd why iconv returns this weird output on mac os x but all is fine on linux
any help ? or directions ?
thanks in advance
© Stack Overflow or respective owner