Excel csv export into a php file with fgetcsv

前端 未结 5 1652
粉色の甜心
粉色の甜心 2021-01-13 17:32

I\'m using excel 2010 professional plus to create an excel file. Later on I\'m trying to export it as a UTF-8 .csv file. I do this by saving it as CSV (symbol separated....

5条回答
  •  [愿得一人]
    2021-01-13 18:16

    The problem must be your file encoding, it looks it's not utf-8.

    When I tried your example and double checked file that is indeed utf-8, it works for me, I get:

    Array ( [0] => 1 [1] => Austria [2] => Österreich )

    Use LibreOffice (OpenOffice), it's more reliable for these sort of things.

提交回复
热议问题