$output = iconv('KOI8-R', 'UTF-8', $input); 也起作用了 :) 还有一种选择是它可以删除损坏或无法识别的字符 iconv("KOI8-R", "UTF-8//IGNORE", $text) 但是你需要安装iconv。