浏览器URL参数值中带有汉字字符,在接收时直接获取会出现乱码,下面是解决方法(传递前不需要encodeURI): function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes…
vi /etc/my.cnf [mysqld]# The default character set that will be used when a new schema or table is# created and no character set is defineddefault-character-set=utf8…