[
https://issues.apache.org/jira/browse/MRESOURCES-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15080396#comment-15080396
]
Anders Hammar commented on MRESOURCES-171:
------------------------------------------
Please understand that .properties files can be
[ResourceBundles|http://docs.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html]
as well, and those can be read as UTF-8 encoded by the use of a proper
[ResourceBundle.Control|http://docs.oracle.com/javase/6/docs/api/java/util/ResourceBundle.Control.html]
(see [here|https://gist.github.com/DemkaAge/8999236] for an example). We can't
assume .properties files to be ISO 8859-1.
> 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)