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

Robert Scholte commented on MRESOURCES-171:
-------------------------------------------

Alan Bateman pointed me to [JEP 226: UTF-8 Property 
Files|http://openjdk.java.net/jeps/226]
{quote}
*Summary*
Define a means for applications to specify property files encoded in UTF-8, and 
extend the ResourceBundle API to load them.

*Motivation*
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 that encoding. This format is supported by the standard 
resource-bundle lookup mechanism. As noted in the related RFEs, this format is 
difficult to use because it requires continuous conversion between its escaped 
form and text in character encodings that are directly editable.

*Description*
* Define a means for applications to specify property files encoded in UTF-8.
* Provide a way for applications to specify the loading preference of UTF-8 vs. 
legacy property files in the ResourceBundle class.
* Preferably provide a way to set the default loading preference.
* Impose minimal performance impact on looking up UTF-8 vs. legacy properties 
resource bundles.
{quote}

> ISO8859-1 properties files get changed into UTF-8 when filtered
> ---------------------------------------------------------------
>
>                 Key: MRESOURCES-171
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-171
>             Project: Maven Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>            Reporter: Alex Collins
>            Priority: Minor
>         Attachments: filtering-bug.zip
>
>
> Create:
> src/main/resources/test.properties
> And add a ISO8859-1 character that is not ASCII or UTF-8, do not use \uXXXX 
> formatting.
> When adding this line:
> <resource><directory>src/main/resources</directory><filtering>true</filtering></resource>
> Expected:
> ISO8859-1 encoded file in jar.
> Actual:
> UTF-8 encoded file in jar.
> ---
> If there are any property files (which can only be ISO8859-1) they appear to 
> be converted into UTF-8 in the jar.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to