【发布时间】:2009-02-09 18:30:17
【问题描述】:
我有一个导出 .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 读取数据时会发生这种情况。
有什么想法吗?我怎样才能防止这种情况发生?
【问题讨论】: