在Excel中打开包含特殊字符的.csv文件

我有一个系统,导出一个.csv文件和一些行包含特殊的框字符,使数据看起来像这样:

Please specify the primary type of opportunity which you're proposing: └─ Please specify what type of sport: └─ What is this person's vocation? └── How long have they been in the industry? 

但是,当我在Excel中打开该文件时,Excel会弯曲框字符,使其最终看起来像这样:

 Please specify the primary type of opportunity which you’re proposing: └─ Please specify what type of sport: └─ What is this person’s vocation? └── How long have they been in the industry? 

该文件被保存为纯文本到用户的硬盘驱动器,我可以在文本编辑器中打开它,看到的字符很好,所以我知道这是Excel中读取数据时发生的事情。

有什么想法吗? 我怎样才能防止这个?

在PHP生成的CSV中,我使用utf8_decode()解决了有关列的问题。

导入您的csv文件,如Excel 2007中下面的链接所示。select适当的编码作为结果将显示预期的数据,包括特殊字符。 http://www.howtogeek.com/howto/microsoft-office/import-text-into-excel-2007/

问候,Kuldeep Rathod

Excel可能试图用错误的编码打开文件; 尝试从Excel内打开文件,并select不同的文件编码; 那些可能是Unicode字符,Excel可能使用iso-8859-15来导入。

如果可能的话selectUTF

HTH