问题说明在获取经过gzip压缩的网页内容时,仅简单的使用file_get_contents时无法自动解压缩获取到实际的网页内容的,会出现乱码的问题。解决方式url 前拼接 compress.zlib:// 字符串 Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql file_get_contents("compress.zlib://".$url);