[jira] [Created] (CONFIGURATION-457) Escape only unicode characters not supported by the file encoding

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CONFIGURATION-457) Escape only unicode characters not supported by the file encoding

ASF GitHub Bot (Jira)
Escape only unicode characters not supported by the file encoding
-----------------------------------------------------------------

                 Key: CONFIGURATION-457
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-457
             Project: Commons Configuration
          Issue Type: Improvement
          Components: Format
    Affects Versions: 1.6
            Reporter: Emmanuel Bourg
            Priority: Minor
             Fix For: 1.7


A non ASCII character is always escaped in a PropertiesConfiguration, even if the encoding selected supports it. It can make the properties file difficult to read and edit manually, especially for non latin languages.


This issue was found on Stack Overflow: http://stackoverflow.com/questions/5661315



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (CONFIGURATION-457) Escape only unicode characters not supported by the file encoding

ASF GitHub Bot (Jira)

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

Oliver Heger commented on CONFIGURATION-457:
--------------------------------------------

Do you have a fix for this issue?

> Escape only unicode characters not supported by the file encoding
> -----------------------------------------------------------------
>
>                 Key: CONFIGURATION-457
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-457
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Format
>    Affects Versions: 1.6
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 1.7
>
>
> A non ASCII character is always escaped in a PropertiesConfiguration, even if the encoding selected supports it. It can make the properties file difficult to read and edit manually, especially for non latin languages.
> This issue was found on Stack Overflow: http://stackoverflow.com/questions/5661315

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (CONFIGURATION-457) Escape only unicode characters not supported by the file encoding

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

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

Emmanuel Bourg commented on CONFIGURATION-457:
----------------------------------------------

This could be implemented by using the {{java.nio.charset.CharsetEncoder}} class to check if the characters can be encoded. Unsupported characters would be escaped.

I'm not working on a fix now, so if someone want to pick the task, it's free.

> Escape only unicode characters not supported by the file encoding
> -----------------------------------------------------------------
>
>                 Key: CONFIGURATION-457
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-457
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Format
>    Affects Versions: 1.6
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 1.7
>
>
> A non ASCII character is always escaped in a PropertiesConfiguration, even if the encoding selected supports it. It can make the properties file difficult to read and edit manually, especially for non latin languages.
> This issue was found on Stack Overflow: http://stackoverflow.com/questions/5661315

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (CONFIGURATION-457) Escape only unicode characters not supported by the file encoding

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/CONFIGURATION-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger updated CONFIGURATION-457:
---------------------------------------

    Fix Version/s:     (was: 1.7)
                   1.8

> Escape only unicode characters not supported by the file encoding
> -----------------------------------------------------------------
>
>                 Key: CONFIGURATION-457
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-457
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Format
>    Affects Versions: 1.6
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 1.8
>
>
> A non ASCII character is always escaped in a PropertiesConfiguration, even if the encoding selected supports it. It can make the properties file difficult to read and edit manually, especially for non latin languages.
> This issue was found on Stack Overflow: http://stackoverflow.com/questions/5661315

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira