BladeHal
BladeHal

Reputation: 783

International characters with Java

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

Upvotes: 4

Views: 468

Answers (1)

Michael Shopsin
Michael Shopsin

Reputation: 2138

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.

Upvotes: 2

Related Questions