0

The eclipse version that I am using is not able to read some of the special characters which are present in the code.

Below are the characters which eclipse is not able to read ..

{'à', 'á', 'â', 'ã', 'ä', 'å', 'æ','ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò','ó','ô', 'õ', 'ö', 'ß', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', '×'} 

It converts the above array into

{ '�', '�', '�', '�', '�', '�', '�','�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�','�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�' } 

Any idea how can we solve this issue ?

2 Answers 2

1

You probably need to change the 'Text file encoding' option. You can specify the default for this in the Preferences > General > Workspace page.

You can also change the value for an individual file on the file Properties > Resource page.

Of course you need to know what the encoding the file is using. UTF-8 would be an initial guess.

Sign up to request clarification or add additional context in comments.

2 Comments

Worked for me by using ISO-8859-1 as the encoding.. Thanks a lot :)
@SiddhantJain mark greg-449 's post as an accepted answer. There's a check mark under the upvote/downvote buttons at the left side of the post.
1
  1. Open eclipse project properties
  2. Set "Text file encoding" to UTF-8 as it is shown on the picture below.

enter image description here

  1. Accept the dialog.

1 Comment

Thanks Rafael for the info

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.