本文介绍了编码检测php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个休闲的字符串:Ëè÷íûåâñòðå÷è如何编码这个字符串int UTF-8文件PHP?
我花了一整天
解决方案我认为这是你正在寻找的:
www.php /manual/en/function.mb-detect-encoding.php
然而,我似乎记得检测编码是相当困难的。另一方面,如果您知道源代码,则可以转换:
www.php/manual/en/function.mb-convert-encoding.php
I have fallowing string: Ëè÷íûå âñòðå÷è How to encode this string int UTF-8 file PHP?
I spend all day to get how to do this.
解决方案I think this is what you are looking for:
www.php/manual/en/function.mb-detect-encoding.php
However, I seem to remember it is quite difficult to detect encoding. On the other hand it is eay to convert if you know the source encoding:
www.php/manual/en/function.mb-convert-encoding.php
更多推荐
编码检测php
发布评论