I’ve just imported a code file from my Netbeans project into an Eclipse project. Eclipse does not like the following line of code that was imported:
if( value == '£' ) {
In Netbeans this shows as:
if( value == '£' ) {
I think it might be down to encoding. Netbeans has a setting for Encoding in Project Properties which is set to UTF-8. Is there an equivalent setting in Eclipse to get round this?
Look if the encodings settings of the ide and the files match. i guess that you created the files latin encoding and opened it in eclipse as utf – 8. Or the conversion uses the wrong character set .
In eclipse Preferences go to Edit and File encoding.