Yos*_*sef 1 php regex character-encoding
我如何从html获取html网页字符集编码为字符串而不是dom?
我得到这样的HTML字符串:
$html = file_get_contents($url);
preg_match_all (string pattern, string subject, array matches, int flags)
Run Code Online (Sandbox Code Playgroud)
但我不知道正则表达式,我需要找出网页字符集(UTF-8/windows-255 /等..)谢谢,
| 归档时间: |
|
| 查看次数: |
4132 次 |
| 最近记录: |