I recently switched from Visual Studio to Eclipse CDT. I installed it beautifully, so the g ++ compiler from my Cygwin installation can find and compile my code without ado.
However, there is a minor complaint. Each time g ++ reports a warning or error, the curly single quotation marks ' and ' displayed as รขโฌห respectively รขโฌโข . This seems like a character encoding problem; g ++ or Cygwin spills out character encodings that CDT or Eclipse dislike.
This is only the relevant Google result that I could find , but setting the C ++ LANG environment variable in the Eclipse settings to C.UTF-8 or en_US.UTF-8 has no effect.
Running C ++ from Cygwin directly shows curly single quotes. Is there any way to disable them at all? Is there any environment variable that I can set, or an argument that I can pass?
In the images
Eclipse shows hieroglyphs in different places:

Cygwin shows the correct characters (ignore the fatal error):

eclipse-cdt g ++ utf-8 cygwin character-encoding
Paul lammertsma
source share