I am facing problems when comparing UTF-8 charcters in an Eclipse RCP:
one of my classes generates a string "2 µs", then another class parses this value and checks for "µs". When I launch this RCP directly from eclipse everything works as expected and I am able to parse the value.
But when I build my product using maven, the String I'd like to parse mutates to: "2 µs"
The maven build uses <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>
I checked the class files within my eclipse projects and the jar created by maven: The String constant for "2 µs" uses the same hex encoding: "32 40 C2 B5 73"
There must be some difference between maven compiling my classes and eclipse doing that But I am lost here - does anyone have a solution to this problem?