Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-35

[configuration] PropertiesConfiguration.load should default to encoding "8859_1"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • None
    • None
    • Operating System: other
      Platform: Other

    • 36699

    Description

      Same issue as:

      http://issues.apache.org/bugzilla/show_bug.cgi?id=17616

      Copied from 17616

      The default load method for commons.collections.ExtendedProperties currently
      loads properties using the default JVM encoding. The default load() method
      should use "8859_1" encoding.

      Rationale:
      1) consistency: java.util.Properties.load() method always uses "8859_1"
      2) properties resources are always 8859_1, by convention.
      2) On edbcic machines, particularly IBM mainframes, the default encoding is
      Cp1047 (ebcdic), but properties files are always ASCII (ISO8859-1)
      3) This bug causes many Apache tools, such as Velocity, which uses
      commons.collections, to fail on non-ascii machines, since they distribute
      properties resources which are (correctly) in 8859-1.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wglass@forio.com Will Glass-Husain
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: