Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
Sheriff
Posts: 35977
422
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
Marshal
Posts: 53134
124
  • 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!