PHP Streaming CSV always adds UTF-8 BOM

前端 未结 2 1571
故里飘歌
故里飘歌 2021-01-22 11:39

The following code gets a \'report line\' as an array and uses fputcsv to tranform it into CSV. Everything is working great except for the fact that regardless of the charset I

2条回答
  •  攒了一身酷
    2021-01-22 12:15

    My guess would be that your php source code file has a BOM, and you have php's output buffering enabled.

提交回复
热议问题