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

(rb) Provide UTF-8 based properties resource bundles

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.2, 5.0, 6
    • core-libs
    • b81
    • generic, x86, sparc
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: