Home >Backend Development >PHP Tutorial >[php] php fgetcsv windows&&linux下兼容问题

[php] php fgetcsv windows&&linux下兼容问题

WBOY
WBOYOriginal
2016-06-23 14:29:30971browse

今天有问题报过来说linux平台下 fgetcsv处理的有空数据产生

起初以为中php版本问题,其实和版本没有关系 在window下开发的同事都没有问题 而自己的本本和服务器上,和使用linux系统的同事 都出现空数据的问题

google一下

 

设置区域:简体中文,UTF-8编码

setlocale(LC_ALL, 'zh_CN.UTF-8'); 

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