mysql中中文乱码 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");Connection connection=DriverManager.getConnection("jdbc:odbc:mysql");用以上方式连接后中文乱码,用jdbc驱动连接则无问题,但是我想用jdbcodbc桥接,请问如何解决中文乱码? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://dev.mysql.com/doc/refman/5.1/zh/MySQL 5.1参考手册 http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/bridge.html // Load the JDBC-ODBC bridge driver Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) ; // setup the properties java.util.Properties prop = new java.util.Properties(); prop.put("charSet", "Big5"); prop.put("user", username); prop.put("password", password); // Connect to the database con = DriverManager.getConnection(url, prop); 求救,mysql的分页小问题 查询中case的问题 两表比较,求高手解决。 查询时提示:系统内存载入已到极限 MySQL触发器中的一个小问题... 如何用MYSQL提取当日的信息 显示在表单中 我刚装的MySQL 5 不知道初始口令是多少呢? 求最小值 求救,InnoDB的性能疑问 小弟新装ubuntu和mysql,遇到了大问题,跪求朋友们帮忙 如何修改表的语言 刚学mysql,中文问题
// Load the JDBC-ODBC bridge driver
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) ;
// setup the properties
java.util.Properties prop = new java.util.Properties();
prop.put("charSet", "Big5");
prop.put("user", username);
prop.put("password", password);
// Connect to the database
con = DriverManager.getConnection(url, prop);