maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Digulla (JIRA)" <>
Subject [jira] [Commented] (MRESOURCES-171) ISO8859-1 properties files get changed into UTF-8 when filtered
Date Sat, 02 Jan 2016 09:19:39 GMT


Aaron Digulla commented on MRESOURCES-171:

We have all been in your place and thought "this can't be, can it? How is that supposed to
work?" Well, it may be a bug or a feature but the fact is: The Java VM *always* uses ISO-8859-1
to read and write properties files. Unless you get Oracle and all the other JVMs to change
the source code, that's the way it is. And all the IDEs and all the other tools and ... you
get the idea. You want Chinese in a properties file? You need to use escape sequences.

I don't like it either but no amount of dislike is going to change the facts.

> ISO8859-1 properties files get changed into UTF-8 when filtered
> ---------------------------------------------------------------
>                 Key: MRESOURCES-171
>                 URL:
>             Project: Maven Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>            Reporter: Alex Collins
>            Priority: Minor
>         Attachments:
> Create:
> src/main/resources/
> 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

View raw message