Java:如何编写“阿拉伯语"在属性文件中?

2022-01-16 00:00:00 properties java struts2 resourcebundle

我想在消息资源包(属性)文件中写入阿拉伯语",但是当我尝试保存它时出现此错误:

I want to write "Arabic" in the message resource bundle (properties) file but when I try to save it I get this error:

无法完成保存某些字符无法使用ISO-85591-1"字符编码进行映射.更改编码或删除字符..."

"Save couldn't be completed Some characters cannot be mapped using "ISO-85591-1" character encoding. Either change encoding or remove the character ..."

谁能指导一下?

我想写:

global.username = اسم المستخدم

global.username = اسم المستخدم

我应该如何在属性文件中写用户名"的阿拉伯语?所以,国际化是有效的..

How should I write the Arabic of "username" in properties file? So, that internationalization works..

BRSC

推荐答案

http://sourceforge.net/projects/eclipse-rbe/

您可以使用上面的eclipse IDE插件为您进行Unicode转换.

You can use the above plugin for eclipse IDE to make the Unicode conversion for you.

相关文章