Why this line of code:
JavaScript
x
$convertedChar = iconv('ISO-IR-166', "UTF-8", '¤');
returns “ยค” instead of “ค”?
also
JavaScript
$convertedChar = iconv('ISO-IR-166', "UTF-8", 'Á');
returns false instead of “ม”.
Advertisement
Answer
After all your helps I’ve got to this result:
JavaScript
$convertedChar = iconv('ISO-IR-166', "UTF-8", utf8_decode('¤'));