If you take a Project, where other Developers before work with the defaultsetting on Windows Eclipse installations (cp1250)... what can you do to come clear with your linux-installation of eclipse?
Or even, if you still work on Linux, and the other Developers work on windows, and don't wan't to change there settings?
In Eclipse, go to Preferences>General>Workspace and select UTF-8 as the Text File Encoding. This should set the encoding for all the resources in your workspace.
Strings are immutable in Java, which means we cannot change a String character encoding. To achieve what we want, we need to copy the bytes of the String and then create a new one with the desired encoding.
You can start Eclipse by running eclipse.exe on Windows or eclipse on other platforms. This small launcher essentially finds and loads the JVM. On Windows, the eclipsec.exe console executable can be used for improved command line behavior.
I recommend to set eclipse Charsetting by default on UTF-8 instead of cp1250.
Here the Solution:
Here a Screenshot off it:
Save it, and your done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With