从jsp传递“段子”过去,与数据库比较时,却是乱码,请问怎么解决?
错误信息如下:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE cod.name='段å?' and cod.DESCRIPTION like '%' '段å?' at line 12