fwrite写入txt中文乱码解决 fwrite($fp, mb_convert_encoding( $content, 'UTF-8', mb_detect_encoding($content) ) ); 你不能把坏习惯扔出窗外 但你可以一步步赶下电梯