Hi,
I want to save file just like as if i open a new text file in window and write any language in UTF-8 format in it and hit save as button i found Encoding at bottom make it UTF-8 and save. i am using this script but it not working
$f=fopen("qadeer.txt", "wb");
$text="\xEF\xBB\xBF".$data_string;
fputs($f, $text);
fclose($f);
it file save the data in qadeer.txt file but the data related to UTF-8 of chienes language like (顨😉 but in result qadeer.txt file it show (???) like this.
i also try this
$f=fopen("qadeer.txt", "wb");
$text=$data_string;
fputs($f, $text);
fclose($f);
it do some work for other language and show right but again for chines lagnuages show (???) it show these charecter okey (avião)
Any Solution of this problem?