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

WBOY
Release: 2016-06-23 14:29:30
Original
900 people have browsed it

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

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

google一下

 

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!