我使用下面的代码获取html内容,
preg_match_all('/<div class="content">(.*?)<\/div>/s',$str,$matches); echo $matches[1][0];
“回应什么?”显示为“对什么做出反应?”
如何解决这个问题..?
您有unicode问题,请尝试将其添加为脚本中的第一行:
header('Content-Type: text/html; charset=utf-8');