转:英文版Excel 2007打开含中文的csv文件乱码如何解决

金碟导出的excel 文件在英文excel2007 乱码也可用同一方法。 估计是金碟导出文件不是真正的excel?

—–以下转载—

http://thisiswiki.com/2008/07/excel-2007-handle-containing-chinese-csv/

PC平台:英文版windows xp sp3, 英文版office 2007

我们的网站经常需要导出一些csv文件,其中包含有中文。过去用Excel 2003处理,没有任何问题。但是当升级到Excel 2007之后,打开这些csv文件,里面的中文就会显示为乱码。

百思不得其解。后来终于发现,跟语言编码有关。据说csv不支持Unicode,或者是不支持UTF-8,所以导出的csv文件往往都是默认ANSI编码的。但是这种ANSI编码含中文的文件,notepad记事本可以正常打开,Excel 2007打开就是乱码。

最后发现,问题的关键是“编辑语言”,Start – All Programs – Microsoft Office – Microsoft Office Tools – Microsoft Office 2007 Language Settings ,在其中的 Editing Language标签,选择Primary Editing Language 为 Chinese(PRC).

然后打开这些含有中文的csv文件就不会有乱码了。不要问我为什么,这是实践的结果。不过我猜,也许微软认为经常编辑英文的人不需要面对中文问题?

留作纪念吧,免得未来忘掉了。

—-

2 thoughts on “转:英文版Excel 2007打开含中文的csv文件乱码如何解决

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word