php iconv character encoding from Thai ISO-IR-166 to utf-8 doesn't work
Get the solution ↓↓↓Why this line of code:
$convertedChar = iconv('ISO-IR-166', "UTF-8", 'В¤');
returns "аёўаё„" instead of "аё„"?
also
$convertedChar = iconv('ISO-IR-166', "UTF-8", 'ГЃ');
returns false instead of "аёЎ".
Answer
Solution:
After all your helps I've got to this result:
$convertedChar = iconv('ISO-IR-166', "UTF-8", utf8_decode('В¤'));
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: trying to access array offset on value of type null
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.