I have a test that passes in eclipse but fails in Maven due to a unicode problem. The test uses this character: ä - the test checks the length of the character, in eclipse its one but maven converts it to 2 characters: ├ñ. Does anyone know how I can get maven to behave the same as eclipse?
So far I have tried adding
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
to the pom for both the root and the project the test sits in. Plus I have tried adding directly to the maven plugin part of the pom as follows:
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<!-- <version>2.1</version>-->
<configuration>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
Eclipse is set to use UTF-8. Im running out of ideas. If there is anything im obviously doing wrong please let me know.
Why is this working fine in Eclipse but not Maven?!
Thanks,
äis encoded in UTF-8? For example, by looking at the hex dump of the file.