<?PHP
$f=fopen("test.txt","wb");
$text=utf8_encode("顨!");
//addingheader
$text="\xEF\xBB\xBF".$text;
fputs($f,$text);
fclose($f);
?>
<?PHP
$f=fopen("test.txt","wb");
$text=utf8_encode("顨!");
//addingheader
$text="\xEF\xBB\xBF".$text;
fputs($f,$text);
fclose($f);
?>