What is “ANSI as UTF-8” and how can I make fputcsv() generate UTF-8 w/BOM?

前端 未结 4 622
离开以前
离开以前 2020-12-08 11:11

I made a PHP script that generates CSV files that were previously generated by another process. And then, the CSV files have to be imported by yet another process.

T

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 11:44

    Try changing your PHP script to UTF-8 too. Sometimes it is necessary (despite it can be bypassed) to have the script in the same char encoding of the data.

    Similar problem: PHP: Explode using special characters

提交回复
热议问题