You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Andrey (Jira)" <ji...@apache.org> on 2023/06/03 12:45:00 UTC

[jira] [Commented] (CONFIGURATION-832) getProperty("key") returns null if value contains cyrillic character 'х'

    [ https://issues.apache.org/jira/browse/CONFIGURATION-832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17728967#comment-17728967 ] 

Andrey commented on CONFIGURATION-832:
--------------------------------------

There is no such error in v2.9.0, TY.

> getProperty("key") returns null if value contains cyrillic character 'х' 
> -------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-832
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-832
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: File reloading
>    Affects Versions: 1.8, 1.9, 1.10
>            Reporter: Andrey
>            Priority: Major
>
> 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 "Привет, мир!х"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)