简体   繁体   English

使用Java从Excel读取多种语言

[英]Read Multiple Languages from Excel with Java

I have an excel spreadsheet that I am trying to read in, which has 45 different languages, ranging from English, to Japanese, to Turkish, to Bavarian, and everything in between. 我有一个要读取的Excel电子表格,其中包含45种不同的语言,从英语,日语,土耳其语到巴伐利亚语,以及介于两者之间的所有语言。 I need write each of the cells into an XML file, which isn't a big deal. 我需要将每个单元格写入XML文件,这没什么大不了的。 The issue I'm having is getting all the languages to print out properly, and I'm not sure what type of encoding I can use to cover all the different languages and have them print out properly. 我遇到的问题是使所有语言都可以正确打印,并且我不确定我可以使用哪种类型的编码来覆盖所有不同的语言并使它们正确打印。

Any suggestions? 有什么建议么?

Yes you can. 是的你可以。 Declare the xml's encoding as utf-8 or utf-16 将xml的编码声明为utf-8utf-16

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM