📜  带有特殊字符的 php file_get_contents html - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:50.432000             🧑  作者: Mango

代码示例1
$source = 'url of page with text with special characters';
$html = file_get_contents($source,0);
$html = mb_convert_encoding($html, 'UTF-8', mb_detect_encoding($html, 'UTF-8, ISO-8859-1', true));