Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse and Scala-IDE source files encoding bug?

I am working on a simple project in Eclipse in Scala-IDE. The project makes use of someone else's library (which comes in *.java source files, not in a .jar). The library source files contain numerous comments in Japaneese. I cannot compile the Scala project since for every such file I get an error like this one:

IO error while decoding D:\path\FileName.java with windows-1252 Please try specifying another one using the -encoding option

Seems like I did not have this problem when the project was in Java. Now I am migrating to Scala and that is what I am getting.. I do not want to delete all these comments, is there any way to make the compiler handle them? I have tried all kinds of encoding fixes starting from Preferences->Resources->Text file encoding and ending with eclipse.ini file encoding parameters...

like image 926
noncom Avatar asked Feb 07 '12 14:02

noncom


1 Answers

I had a similar issue after I switched from linux to macosx

Eclipse default text file encoding was set to US-ASCII, to fix this:

(Eclipse Juno)

  1. Open the preferences
  2. General - Workspace
  3. Switch "text file encoding" to "UTF-8"
like image 170
Somatik Avatar answered Sep 23 '22 15:09

Somatik