The following
u8"abc ß α € àḃç Málaga uña"
Is being converted on the command line by
echo abc ß α € àḃç Málaga uña| iconv --verbose -f UTF-8 -t ASCII//TRANSLIT
to
"abc ss ? EUR abc Malaga una"
However, in my 64 bit C++ programme (gcc 6.3.0), using iconv_open(u8"US-ASCII//TRANSLIT", u8"UTF-8")
, it is being converted to
"abc ss ? EUR ??? M?laga u?a"
iconv(3)
doesn't return -1.
Any help much appreciated.
Thanks for the replies. I stumbled upon the solution here
http://php.net/manual/en/function.iconv.php
As rodrigo said, I'd missed out
std::setlocale(LC_ALL, "en_GB.UTF-8");