Firstly i using notepad to save a xml file as UTF-8 encoding
After that i write another php file that using file() like:
$file = fopen("a.xml", "w");
if(fwrite($file, $content)){
echo "Success";
} else {
echo "Fail";
}
it can succesfully save my text to xml file, but it also change my file type to Unicode encoding, so have any idea to control fwrite not change my file encoding type?
p/s: my text will include multilanguage