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