Java: How to write “Arabic” in properties file?

前端 未结 7 1974
自闭症患者
自闭症患者 2021-01-05 09:32

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

\"Save couldn\'t be completed Some characters

相关标签:
7条回答
  • 2021-01-05 10:19

    new String(ret.getBytes("ISO-8859-1"), "UTF-8"); worked for me. property file saved in ISO-8859-1 Encodiing.

    0 讨论(0)
提交回复
热议问题