Siddhant Jain
Siddhant Jain

Reputation: 549

Issues in eclipse editor

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 ?

Upvotes: 0

Views: 87

Answers (2)

user784540
user784540

Reputation:

  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.

Upvotes: 1

greg-449
greg-449

Reputation: 111142

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.

Upvotes: 1

Related Questions