页面插入中文出现乱码
解决方法:
路径后加上?characterEncoding=utf-8的参数
String url = "jdbc:mysql://127.0.0.1:3306/db_zifei?characterEncoding=utf-8";
String user = "root";
String SQlpassword = "";
Connection conn = DriverManager.getConnection(url, user, SQlpassword);
路径后加上?characterEncoding=utf-8的参数
String url = "jdbc:mysql://127.0.0.1:3306/db_zifei?characterEncoding=utf-8";
String user = "root";
String SQlpassword = "";
Connection conn = DriverManager.getConnection(url, user, SQlpassword);