Microsoft Excel在保存文件时使用什么字符集? [英] What charset does Microsoft Excel use when saving files?

查看:732
本文介绍了Microsoft Excel在保存文件时使用什么字符集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java应用程序读取在Excel中创建的CSV文件(例如2007)。有没有人知道什么字符集MS Excel用来保存这些文件?

I have a Java app which reads CSV files which have been created in Excel (e.g. 2007). Does anyone know what charset MS Excel uses to save these files in?

我会猜到:


  • windows-1255(Cp1255)

  • ISO-8859-1

  • UTF8

但我无法使用这些charset类型中的任何一种解码扩展字符(例如,法语重音字母)。

but I am unable to decode extended chars (e.g. french accentuated letters) using either of these charset types.

推荐答案

CSV文件可以是任何格式,具体取决于在从Excel导出期间指定的编码选项:(保存对话框,工具按钮,Web选项项目,编码选项卡)

CSV files could be in any format, depending on what encoding option was specified during the export from Excel: (Save Dialog, Tools Button, Web Options Item, Encoding Tab)

更新:Excel(包括Office 2013)实际上不尊重在另存为...对话框中选择的Web选项,因此这是一个错误。我现在只是使用OpenOffice Calc打开我的XLSX文件并将其导出为CSV文件(编辑过滤器设置,选择UTF-8编码)。

UPDATE: Excel (including Office 2013) doesn't actually respect the web options selected in the "save as..." dialog, so this is a bug of some sort. I just use OpenOffice Calc now to open my XLSX files and export them as CSV files (edit filter settings, choose UTF-8 encoding).

这篇关于Microsoft Excel在保存文件时使用什么字符集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆