Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A Question About Mysql and netbeans

 
liu yang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when mysql connect with nebeans or Eclipse,it can display letters normaly ,but it can not display chinese character?
who can solve it ?Thank you
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34386
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Liu,
Welcome to JavaRanch!

Can you show the code snippet you are referring to? Or is this a plugin for one of the IDEs?
 
liu yang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you!
I want to show the information int the table such as "乔丹","公牛队",but in eclipse`s console characters changed to be irrecognizable because different coder or other reasons.why?
 
Campbell Ritchie
Sheriff
Posts: 48917
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try putting the information onto a Swing Component. Rather than System.out.println(...), try JOptionPane.showMessageDialog(null, "...");

Beware: JOptionPane produces modal windows, so you will have delays while you close them.

If that works, then you know you can display the text somehow.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic