jan_bar wrote:
Hi,

It seems to me that maven 2.0.4 filter corrupts UTF-8 files. I have a XML
file with UTF-8 encoding that doesn't contain any replacement strings, but
it is filtered. The resulting file is not the same as source file, UTF-8
characters are wrong. Why maven modifies the file? I suspect, that the
filter also changes encoding.
I am on Windows 2000 and default encoding for Java seems to be cp1250.

Jan

You need to specify the encoding for resources plugin. Unfiltered files are copied as-is, but filtering sets the encoding to platform default, if unspecified. Check out this link for example configuration:
http://maven.apache.org/plugins/maven-resources-plugin/examples/encoding.html


cheers,

Andrius

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to