Answer the question
In order to leave comments, you need to log in
How to apply iconv correctly?
I have text from db
23 ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð Ð € РРРРРРРРРРРРРРРРРРРум.
echo iconv('windows-1252', 'utf-8', $txt)
Notice: iconv(): Detected an illegal character in input string in
Answer the question
In order to leave comments, you need to log in
$text = '23 ноÑÐ±Ñ€Ñ 2017 года в МоÑкве ÑоÑтоитÑÑ V МоÑковÑкий международный инженерный форум.';
echo iconv('UTF-8//IGNORE', 'cp1252//IGNORE', $text);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question