Home  >  Article  >  Backend Development  >  关于文件的多字符集处理有关问题

关于文件的多字符集处理有关问题

WBOY
WBOYOriginal
2016-06-13 13:49:49692browse

关于文件的多字符集处理问题
拿到一个文件怎么判断其内容是用什么字符集进行编码的?

------解决方案--------------------
如果在windows下面,用IMultiLanguage2::DetectInputCodepage
------解决方案--------------------
mb_detect_encoding

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn