maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Boutemy (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MRESOURCES-171) ISO8859-1 properties files get changed into UTF-8 when filtered
Date Sun, 03 Jan 2016 11:25:39 GMT

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

Hervé Boutemy commented on MRESOURCES-171:
------------------------------------------

wow, if somebody uses this Control feature to change encoding of *.properties files, I thinks
he's doing something really confusing: while doing so, he should use another file extension
(like *.utf8properties, for example) to avoid confusion

IMHO, by default, Maven should consider *.properties files to be ISO-8859-1 since this is
the classical case, and support configuration if somebody requires another encoding on these
files (which he should re-think about...)

> 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)

Mime
View raw message