JDK cann't accept international caharacter properly , when they use the non-unicode encoding.
reproduce it:
1. save the attached file to local.
2. run the file
java readP demo.properties
In chinese locale, you can see display the chinese as garbage.
reproduce it:
1. save the attached file to local.
2. run the file
java readP demo.properties
In chinese locale, you can see display the chinese as garbage.
- duplicates
-
JDK-4209903 Doc: Properties files with localized encoding won't work
-
- Resolved
-