This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Does mysql3.2x.xx support Chinese?  RSS feed

Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/test");
String sql = "INSERT INTO Item(id,name) VALUES (?,?)";
PreparedStatement ps = conn.prepareStatement(sql);
ps.setString(2,new String("ISO-8859-1"),"GBK"));
name field include "???"
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!