如何将PHP值从Windows-1257转换为UTF-8 [英] How convert PHP value from windows-1257 to UTF-8

查看:86
本文介绍了如何将PHP值从Windows-1257转换为UTF-8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将PHP值从Windows-1257转换为UTF-8?我尝试了很多方法,但没有成功.我有lttu.s,我想将其转换为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()

不起作用. :(

有人可以帮助我吗?

推荐答案

$encoded= iconv ("CP1257","UTF-8", $string)

这篇关于如何将PHP值从Windows-1257转换为UTF-8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆