invalid character error on eclipse docker using xming on windows

187 Views Asked by At

Inavlid Character error in eclipse on docker

I have created a container using file similar to https://github.com/batmat/docker-eclipse/blob/master/Dockerfile on docker installed on windows 7.I did need to make a change of setting the locale first in dockerfile. I tried with both en_US.UTF8 and en_IN.UTF8.

When I start the container I am successfully able to open the eclipse in xming but eclipse is giving invalid character error on double quotes.(Probably on some other characters)

Is there any other change/setting I need to do?

1

There are 1 best solutions below

4
On

This does not look like a file encoding problem (because the syntax error is not displayed at the first character), but that instead of ASCII quotation marks (") similar looking characters (e. g. , ײ, ״, ʺ, etc.) were used.

Replace line 17 with the following line:

System.out.println("Hello There");

See also: Java Language Specification - 3.10.5. String Literals