Java 的国际字符
我正在构建一个应用程序,它从 java 获取信息并构建 Excel 电子表格。一些信息包含国际字符。例如,当俄语字符在 Java 中正确呈现时,我遇到问题,但当我将这些字符发送到 Excel 时,它们无法正确呈现。我最初认为问题是编码问题,但现在我认为问题根本在于我的 Windows 7 计算机上没有加载俄语语言包。
我需要知道 Java 应用程序是否有办法“强制”Excel 显示国际字符。
谢谢
I am building an app that takes information from java and builds an excel spreadsheet. Some of the information contains international characters. I am having an issue when Russian characters, for example, are rendered correctly in Java, but when I send those characters to Excel, they are not rendered properly. I initially thought the issue was an encoding problem, but I am now thinking that the problem is simply not have the Russian language pack loaded on my Windows 7 machine.
I need to know if there is a way for a Java application to "force" Excel to show international characters.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您正在使用的文件编码是否未显示字符。 Java 默认使用平台本机编码(Windows 为 Win-1252)而不是 UTF-8。您可以显式地将编写器设置为使用 UTF-8 或西里尔字母编码。
Check the file encoding you're using is characters don't show up. Java defaults to platform native encoding (Win-1252 for Windows) instead of UTF-8. You can explicitly set the writers to use UTF-8 or Cyrillic encoding.