Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com/questions/11990711/… –  dtmland Oct 21 at 20:36

1 Answer 1

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.

source

Maven

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

 
discard

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.