编码不一致
o12321o
这个作者很懒,什么都没留下…
展开
-
window.location.url解決中文乱码
window.location.url解決中文乱码(1).页面中先对中文进行编码。ps:window.location.href = url+"&key=" + encodeURI(encodeURI(key)) ;(2).java后台解析key= java.net.URLDecoder.decode(key, “UTF-8”);原创 2021-04-21 10:54:45 · 207 阅读 · 0 评论 -
解决mysql表或这字段字符集不一致错误
解决mysql表或这字段字符集不一致错误报错内容解决方式报错内容java.sql.SQLException: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation ‘=’解决方式1、首先找到相关表,查看表字符集是否一致show table status from 数据库名称 like 表名;2、查看字段是否一致SHOW FULL COLUM原创 2021-01-20 22:51:25 · 1210 阅读 · 0 评论