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

getProperty("key") returns null if value contains cyrillic character 'х'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8, 1.9, 1.10
    • 2.9.0
    • File reloading
    • None

    Description

      I'm use PropertiesConfiguration (commons-configuration v1.8, v1.9 and v1.10) to read ".properties" file.

      If value of property contains cyrillic character 'х' (U+0445) PropertiesConfiguration.getProperty("key") returns null. For example:

      • in case of key=Привет, мир! => getProperty("key") will return "Привет, мир!"
      • but in case of key=Привет, мир!х => getProperty("key") will return NULL

      BUT if property with 'х' character added in PropertiesConfiguration using addProperty("key", "Привет, мир!х") getProperty("key") will return "Привет, мир!х"

      Attachments

        Activity

          People

            Unassigned Unassigned
            ldoctori Andrey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: