Is it confusing to operate excel or cvs files in php? When using php to operate cvs or excel (read or write), I remember that the encoding used to write cvs must be converted to gbk, so that some characters won't be garbled! Is it best to convert all file stream operations to gbk for execution? ------ Solution ------------------ using gbk in windows is easier. Of course, UTF-8 should also work. You only need to consider more. For example, how can I operate excel or cvs files in php?
When using php to operate cvs or excel (read or write), I remember that the encoding used to write cvs must be converted to gbk, so that some characters won't be garbled! Is it best to convert all file stream operations to gbk for execution?
------ Solution --------------------
Using gbk in windows is easier. Of course, UTF-8 should also work. You only need to consider more. For example, bom header. Of course, it can also be done through conversion encoding.