United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6204853 : (rb) Provide UTF-8 based properties resource bundles

Details
Type:
Enhancement
Submit Date:
2004-12-07
Status:
Resolved
Updated Date:
2013-10-30
Project Name:
JDK
Resolved Date:
2006-04-14
Component:
core-libs
OS:
solaris_9,generic,windows_xp
Sub-Component:
java.util:i18n
CPU:
x86,sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.2,5.0,6
Fixed Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
The J2SE platform should provide a properties file format as well as a resource bundle lookup strategry based on plain UTF-8.

The platform has for a long time provided a properties file format that is based on ISO-8859-1 and provides an escape mechanism for characters that cannot be represented in this encoding. This format is supported by the standard resource bundle lookup. But, as expressed in the descriptions of RFE's 4749531, 4503634 and others, it's hard to use because it requires continuous conversion back and forth between its escape sequences and character encodings that are actually editable.

Since 5.0, the platform has also provided an XML-based properties file format. This format does allow any character encoding to be used. However, XML files are harder to edit (especially for localizers), they take significantly longer to parse, and the format is currently not supported by the resource bundle lookup.

A plain UTF-8 properties file format that's supported by the resource bundle lookup strategry would make properties resource bundles far more useful.

To distinguish between UTF-8 properties files and ISO-8859-1 properties files, a different file suffix can be used. The syntax of the files can be simplified and sanitized from the ISO-8859-1 version because escape sequences are not needed.
###@###.### 2004-12-07 01:38:58 GMT

                                    

Comments
EVALUATION

Probably we need the system wide support of UTF-8-based properties rather than just in ResourceBundle. See 4919638.

###@###.### 2004-12-14 03:21:40 GMT
                                     
2004-12-07
EVALUATION

Providing a new constructor, which takes a Reader instance.  The caller can supply it constructed from a property file in any encoding, including UTF-8.
                                     
2006-03-29



Hardware and Software, Engineered to Work Together