I have a small html code and I need to convert it to UTF-8.
I use this iconv(\"windows-1251\", \"utf-8\", $html);
All text converts correctly, but
I always use manual convertation (character-by-character), like this:
$input= 'Обращение РљР°С';
$s= str_replace('С?','fgr43443443',$input);
$s= mb_convert_encoding($s, "windows-1251", "utf-8");
$s= str_replace('fgr43443443','ш',$s);
echo $s;
p.s. dont forget, the .php file encoding should be UTF8. also, in the head of HTML,insert standard declaration for UTF8