如何转换为UTF-8? [英] How to convert to UTF-8?
本文介绍了如何转换为UTF-8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好!你能帮助我吗。我的文字是:
$ b $bÊîìïàêòíûéèýêîíîìè÷íûéìîòððEc
我尝试将其转换为UTF -8 with iconv:
Hello! Can you help me. I hae the text:
Êîìïàêòíûé è ýêîíîìè÷íûé ìîòîð Ec
I try convert it to UTF-8 with iconv:
return iconv ("windows-1252","windows-1252", $text);
但它不起作用。
如何转换?
已添加代码块[/ Edit]
But it does not work.
How to convert?
Code block added[/Edit]
推荐答案
text);
但它不起作用。
如何转换?
已添加代码块[/编辑]
But it does not work.
How to convert?
Code block added[/Edit]
您拥有的输入字符集和输出字符集完全相同,因此不进行转换。
尝试类似:
The input charset and output charset you have are exactly the same, so its not converting it.
Try something like:
iconv("windows-1252", "UTF-8",
text)
已添加代码块[/ Edit]
Code block added[/Edit]
这篇关于如何转换为UTF-8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文