坑爹的BOM PHP

WBOY
Release: 2016-06-23 13:29:58
Original
757 people have browsed it

PHP 打印了一个 字符串 ,
然后在 Android 客户端上取一下,
然后就发现 这个字符串前后 多了许多 feff 这样的字符。


最后发现 ,php文件是BOM的, 因为是从windows里传上去的。

xxd file.php
linux中这个命令可以 看是不是 文件的前后 有这样的字符。

版权声明:本文为博主原创文章,未经博主允许不得转载。

Related labels:
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