Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » GBK encoding on console output
GBK encoding on console output [message #575276] Thu, 23 July 2009 01:42
david chen is currently offline david chen
Messages: 4
Registered: July 2009
Junior Member
Hi, I've been using Eclipse for 6 months now doing Mobile development.
Great tool! Good Job!!

Now I've encountered a problem that I would like to share with everyone
here.

I'm using a Chinese edition of Windows XP, service pack 3. Doing J2ME
development, I normally use the Sun WTK 2.5.2 for device emulation. In
order to get Chinese output on the console when running my application on
the WTK emulator, I need to set the "Run Configuration"->console encoding
to GBK. I'm also running a J2EE project in the same environment, as part
of my server side application.

To make a long story short, I must set my workspace text file encoding to
UTF-8 in order for things to work. All of my projects are also set to
UTF-8 encoding. However, the Run configuration setup does not give me the
GBK option for console encoding. This means that i will not be able to
get readable debug messages on the screen.

I did however, find a work around to this solution. if I set my workspace
to GBK (that the default), and my J2ME project to GBK, then the option for
GBK shows up in the "Run Configuration" for console output. I then
specificly select it ( don't use the "inherited" option), and go back to
my workspace and projects, set them back to UTF-8, then the console output
will stay at GBK.

This sounds like a bug to me. Eclipse should just make all the encodings
available to the user, shouldn't have to jump through hoops to get the
desired console encoding...


Cheers,

David
Previous Topic:ClassNotFoundException when two classes are defined in the same java file
Next Topic:How to use preprocessor?
Goto Forum:
  


Current Time: Wed Oct 01 12:19:51 GMT 2014

Powered by FUDForum. Page generated in 0.04087 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software