How can I output a UTF-8 CSV in PHP that Excel will read properly?

后端 未结 30 2504
半阙折子戏
半阙折子戏 2020-11-22 06:08

I\'ve got this very simple thing that just outputs some stuff in CSV format, but it\'s got to be UTF-8. I open this file in TextEdit or TextMate or Dreamweaver and it displa

30条回答
  •  心在旅途
    2020-11-22 06:29

    Does the problem still occur when you save it as a .txt file and them open that in excel with comma as a delimiter?

    The problem might not be the encoding at all, it might just be that the file isn't a perfect CSV according to excel standards.

提交回复
热议问题