After converting a string from one encoding to another, through the iconv function, in some places incomprehensible characters appear in the form of a quarantine with a question mark. How can you get rid of them?

Here's an example: "Car dry cleaning? Information portal of Yaroslavl and the region?"

code:

$rss = ob_get_contents(); $rss = mb_convert_encoding($rss, "windows-1251", mb_detect_encoding($rss)); 
  • Not much information, I can assume that you are converting from UTF-8 to windows-1251 - is that so? The string you are converting is sure that it is correct? Mbstring settings? Does mb_convert_encoding convert as well? - binliz
  • Give the code fragment in which the conversion takes place - rjhdby
  • $ rss = ob_get_contents (); $ rss = mb_convert_encoding ($ rss, "windows-1251", mb_detect_encoding ($ rss)); mb_detect_encoding - wins utf-8 - aat
  • one
    Oh .... Why do you don’t understand linux and android in the windows-1251 encoding ... There was even a stage when everything was translated from cp-1251 to utf-8 for a turn ... - Naumov

0