0

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)

1

1 Answer 1

1

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"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .