display chinese character in eclipse console output

poiuy picture poiuy · Jun 27, 2009 · Viewed 7.6k times · Source

I am trying to display some Chinese characters in the GB2312 encoding in the eclipse console. I realize that in Run Dialog -> Common tab -> Console Encoding, I can choose additional encodings other than the default CP1252. However, how I can add additional encodings, like GB2312?

Thanks.

Answer

VonC picture VonC · Jun 27, 2009

From this thread:

Since 3.4 (Ganymede), the default encoding is inherited from the resource (project) associated with the launch configuration.
If encoding is not specified for the project - encoding configured for the workspace or system default encoding is used.

alt text
(source: eclipse.org)

Since it appears you cannot change console encoding anywhere else but in the Run configuration's common tab (see this thread), I am not sure it can be done at this point.
That already has some side effect like bug 238945.

As illustrated by this article, you can only change the encoding once.