Home >Backend Development >PHP Tutorial >PHP encounters problems obtaining the source code of iqiyi
<code>想要获取“http://so.iqiyi.com/so/q_入侵华尔街”目标网页的源代码, 但是得到的是“<title>æä»å¿ æ¥_视频在线观看-爱奇艺搜索</title>” 不知道“æä»å¿ 楔是什么编码格式?</code>
<code>想要获取“http://so.iqiyi.com/so/q_入侵华尔街”目标网页的源代码, 但是得到的是“<title>æä»å¿ æ¥_视频在线观看-爱奇艺搜索</title>” 不知道“æä»å¿ 楔是什么编码格式?</code>
html_entity_decode()
In fact, you should urlencode it. My test was normal and it was not encoded
<code>$data = file_get_contents('http://so.iqiyi.com/so/q_' . urlencode('入侵华尔街')); var_dump($data); </code>