Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to setup your environment to work with cp1250 source code in Eclipse on Linux?

(I know, if you can use UTF-8, unfortunately, it's not always possible)

share|improve this question
Related… – dtmland Oct 21 '14 at 20:36
up vote 1 down vote accepted

Text file encoding

Go to:

Windows > Preferences > General > Workspace

than find:

Text file encoding > Other

and just type in manually the encoding: cp1250

You probably want to change as well the "New text file line delimiter" to Other > Windows.



To build the code you need to pass set -encoding argument on javac, to do this in maven add this to your .bashrc

export MAVEN_OPTS="-Dfile.encoding=CP1250"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.