'How to read characters accurately from ResourceBundle object
I have a ResourceFiles_en_GB.properties file with the following entry.
imagefileName1=123 0 Dubai 사본 (1).png
When I attempt to print the value the characters are not displayed well
public static void main(){
ResourceBundle bundleUK = ResourceBundle.getBundle("ResourceFiles", Locale.UK);
System.out.println("Entry in" + Locale.UK + ":" + bundleUK.getString("imagefileName1"));
}
The output is:
Entry in en_GB:123 0 Dubai ????? (1).png
Why are the characters 사본 replaced with ????? I thought I should get no such issue with Java version 9 and above. I am on version 13.
Any help and advice appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
