How convert PHP value from windows-1257 to UTF-8
How convert PHP value from windows-1257 to UTF-8? I tried many ways, but they was not successful. I have lttu�s and I wanna convert this to littūs.
utf8_encode();
iconv_set_encoding("windows-1257", "UTF-8");
mb_convert_encoding()
Doesn't work. :(
Can anybody help m开发者_StackOverflow中文版e?
$encoded= iconv ("CP1257","UTF-8", $string)
Use mb_convert_encoding($data, 'UTF-8', 'ISO-8859-13');
Have you checked that the page you are using to display the converted string has the Encoding and CodePage set correctly?
精彩评论