You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emeric MARTINEAU (JIRA)" <ji...@codehaus.org> on 2013/07/04 20:37:05 UTC

[jira] (MRESOURCES-175) Bad encoding in filtering

    [ https://jira.codehaus.org/browse/MRESOURCES-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=328020#comment-328020 ] 

Emeric MARTINEAU commented on MRESOURCES-175:
---------------------------------------------

Hi,

after more search, it's not Maven issue.

If you look like java.util.Properties javadoc (http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html) you can see :
"except the input/output stream is encoded in ISO 8859-1 character encoding"

and 

"The native2ascii tool can be used to convert property files to and from other character encodings."

You can close this ticket.

No solution except rewrite Properties class.
                
> Bad encoding in filtering
> -------------------------
>
>                 Key: MRESOURCES-175
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-175
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 2.6
>         Environment: jdk1.6.0_43
>            Reporter: Pavel Zinoviev
>            Priority: Blocker
>
> I have a resources
> <resources>
>  <resource>
>   <directory>src/main/resources</directory>
>   <filtering>true</filtering>				
>   <excludes>
>    <exclude>filters/**.*</exclude>
>   </excludes>
>  </resource>
> </resources>
> and
> <filters>
>  <filter>src/main/resources/filters/filter-ru.properties</filter>			
> </filters>
> in maven-resource-plugin defined UTF-8 encoding.
> but result of 'mvn resources:resources' is unreadable... It's not utf-8. May be loading of filter file performed with some default encoding?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira