解决报错Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation ‘=’
- 编码问题
- 将要接收的字符转为 utf-8
- 例如
String name = new String(request.getParameter("uname").getBytes("ISO-8859-1"),"UTF-8");
String name = new String(request.getParameter("uname").getBytes("ISO-8859-1"),"UTF-8");