I’m using Eclipse for programming. In one method of my project i used the String “§”. I use a svn repository. If i edit the file with Ubuntu OS the § symbol isnt displayed correctly in the eclipse editor and also in my programm, if I edited it before on Windows. The same is vice versa.
Any hints how to solve this problem? I don’t want to always change the symbol manually if I comitted a new version from another OS
Check the “Text file encoding” of your sources.
(
Preferences / General / Workspace)I would recommend in your case
UTF-8.You can also set the default type in
Preferences / General / Content Type / Text / Java source filealt text http://img401.imageshack.us/img401/4341/eclipseencoding.png