Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6204853

(rb) Provide UTF-8 based properties resource bundles


    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.2, 5.0, 6
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
    • CPU:
      generic, x86, sparc
    • OS:
      generic, solaris_9, windows_xp


      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


          Issue Links



              • Assignee:
                naoto Naoto Sato
                nlindenbsunw Norbert Lindenberg (Inactive)
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: