php通过CURL的方式读取并输出图片乱码

WBOY
Release: 2016-06-23 13:39:02
Original
1874 people have browsed it

这是服务器上显示的源代码效果:



这是在本机显示的效果:



为什么会乱码呢?服务器需要设置什么东西吗? 求大牛指教! 


回复讨论(解决方案)

图片数据看上去本来就是乱码
你抓取到的不完全是图片内容(包含了XML标记),并且没有图片文件的特征字

找到原因了,是因为我程序中引入了一个其它编码的文件导致的!!!

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!