The property of the configuration file is set to Chinese, and the garbled code is displayed after reading.

I used idea to develop, File Encodings with Transparent native-to-ascii conversion set to true. There is such a configuration in the configuration file test.bank= Bank of China ,
no problem compiling and running on idea.
after packaging, open it in notepad and display the property configuration as test.bank=\ u4E2D\ u56FD\ u94F6\ u884C , so that it is no problem to run the packaged program.
at this point, if I manually change this property of the packaged configuration file to test.bank= Bank of China , then the program will run with garbled code.

I would like to ask, how to ensure that the configuration file of the packaged program is displayed in Chinese, and that there is no garbled code after the program is run and read?

Jul.22,2021

\ u4E2D\ u56FD\ u94F6\ u884C is unicode encoding, indicating that the configuration file will be transcoded when the program is running. If you change the unicode code into Chinese, the Chinese code will be garbled after transcoding. Either the program does not transcode, or you use an editor that can be transcoded to edit the packaged configuration file.

Menu