Is there a way when writing a new file using fwrite() to determine the encoding of the file (eg to specify if the file is using UTF-8 encoding.) ?
Thanks.