Name: mc57594 Date: 02/28/97
1. Create a property file including the following line;
hello=.... // Assume .... as a multi-byte character string.
2. Call the method load() of the class Properties against the above property file.
3. Call the method getProperty() against the above property object with the key "hello", then println() it.
4. Garbage characters was displayed.
I looked into the source file Properties.java provided with JDK1.1. The method load() is using the deprecated and not-completely-internationalized method "getLocalizedInputStream()". I think it causes this problem.
company - Sybase K.K. , email - ###@###.###
======================================================================
- duplicates
-
JDK-4032107 java.util.Properties class doesn't work for localized properties.
-
- Closed
-
-
JDK-4035169 Properties.load & Properties.save doesn't support UNICODE
-
- Closed
-
-
JDK-4383964 localization/UNICODE issues
-
- Closed
-
- relates to
-
JDK-8043553 JEP 226: UTF-8 Property Resource Bundles
-
- Closed
-
-
JDK-4153531 java.lang.PropertiesgetProperty does not recognize unicode key in Properties
-
- Closed
-