Home >Backend Development >PHP Tutorial > file_get_contents读取xls一片乱码?解决思路

file_get_contents读取xls一片乱码?解决思路

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:46:56949browse

file_get_contents读取xls一片乱码?
我在网上下了一个xls,本地wps打开是正常的,但是用file_get_contents或者file()却得到一篇乱码。$S = iconv("utf-8","gb2312", $data); 或$S =iconv("gb2312","utf-8", $data);均无任何效果

请教怎么处理啊。。

谢谢!!

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