I have a small html code and I need to convert it to UTF-8. I use this iconv(\"windows-1251\", \"utf-8\", $html);
iconv(\"windows-1251\", \"utf-8\", $html);
All text converts correctly, but
If you have access to the Multibye package, you can try it. See the PHP page here: http://www.php.net/manual/en/function.mb-convert-encoding.php
$html_utf8 = mb_convert_encoding($html, "utf-8", "windows-1251");