开发者

How convert PHP value from windows-1257 to UTF-8

开发者 https://www.devze.com 2022-12-25 07:08 出处:网络
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.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消