Home  >  Article  >  Backend Development  >  php 乱码转码 触发访问url的方法

php 乱码转码 触发访问url的方法

WBOY
WBOYOriginal
2016-06-13 13:06:341228browse

php 乱码转码 触发访问url的方法【原创】

对于php的转码,用

iconv("UTF-8","GB2312","中文乱码") 从UTF-8转到GB2312

?

对于在php代码里突然触发访问某个url

file_get_contents($sendUrl);

?

如果访问不到,有可能是所在机器没有解析dns或现在访问公网。我就试过。

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