Good day. There is one word ქართულად. in the database this word is in a different encoding and it looks like this რ¥ áƒáƒ რ— რ£ ლáƒáƒ. Through php convert these krakozyabry in normal text

here's the php code

$str = "ქáƒáƒ თულáƒáƒ“"; $cat_name = iconv("UTF-8", "WINDOWS-1252", $str); echo $cat_name; 

But for some reason this word ქართულად is displayed incorrectly. I can not understand how to fix it. thanks in advance

  • I think the root of evil lies in the wrong encoding of the database itself. Fix it on UTF-8. And everything will have to be saved correctly. - Finies
  • it is yes but at the moment there is already a huge base, it is not possible to remake it. It remains to convert using PHP - giorgi ksovrela
  • oh, these huge bases that are impossible to remake - Peresada
  • one
    And why do you translate it into cp1252 encoding? In this encoding en.wikipedia.org/wiki/Windows-1252 there are no characters of the alphabet in which that word is typed - Mike
  • one
    Try to put on the connection with the database the encoding in which the text was originally entered. then read and see what you got - Mike

0