Question

I've import a project from SVN (Assembla) in Eclipse Kepler. When the project is imported, the accented characters found in the code, appear with a question mark. I've changed workspace text encoding to UTF-8 and imported the project again, but the quiestion marks are still there. I'm running eclipse on MAC. In windows, the importation works well.

Was it helpful?

Solution

OK on OS X - you might be getting hit with the specific file encoding, often there are magic comments at the top of the file or the file itself is set to an encoding. You can alter your file encoding on Mac OS X like so:

iconv -f ISO-8859-1 -t UTF-8 File.txt > File.txt.utf8

And for a bunch of files:

find /path/to/Workspace -name \*.txt -type f | \
  (while read file; do
  iconv -f ISO-8859-1 -t UTF-8 "$file" > "${file%.txt}.utf8";
  done);

This will convert all txt files, change *.txt to get different file types.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top