$f=fopen("test.txt", "wb"); $text=utf8_encode("顨!"); // adding header $text="\xEF\xBB\xBF".$text; fputs($f, $text); fclose($f); ?> http://www.bkjia.com/www.bkjia.comtruehttp://www.bkjia.com/TechArticle?