permaculture playing cards*
The moose likes JDBC and the fly likes A Question About Mysql and netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "A Question About Mysql and netbeans" Watch "A Question About Mysql and netbeans" New topic
Author

A Question About Mysql and netbeans

liu yang
Greenhorn

Joined: Nov 08, 2008
Posts: 2
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30370
    
150

Liu,
Welcome to JavaRanch!

Can you show the code snippet you are referring to? Or is this a plugin for one of the IDEs?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
liu yang
Greenhorn

Joined: Nov 08, 2008
Posts: 2
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

Joined: Oct 13, 2005
Posts: 38483
    
  23
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.
 
Don't get me started about those stupid light bulbs.
 
subject: A Question About Mysql and netbeans