MySql????????????UTF8
???????????? ???????[ 2013/6/13 11:06:40 ] ????????
?????????Σ????????????
????X:\%path%MySQLMySQL Server 5.0inMySQLInstanceConfig.exe
?????????????????????????????utf8.????????????????Ч?????
????mysql> SHOW VARIABLES LIKE 'character%';
????+--------------------------+---------------------------------------------------------+
????| Variable_name | Value |
????+--------------------------+---------------------------------------------------------+
????| character_set_client | utf8 |
????| character_set_connection | utf8 |
????| character_set_database | utf8 |
????| character_set_filesystem | binary |
????| character_set_results | utf8 |
????| character_set_server | utf8 |
????| character_set_system | utf8 |
????| character_sets_dir | C:Program FilesMySQLMySQL Server 5.0sharecharsets |
????+--------------------------+---------------------------------------------------------+
????8 rows in set
???????????????
????1?????????utf8??????ε?Collation??????????????????utf8_general_ci???
CREATE TABLE `tablename4` (
`id` int(11) NOT NULL AUTO_INCREMENT??
`varchar1` varchar(255) DEFAULT NULL??
`varbinary1` varbinary(255) DEFAULT NULL??
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
????2?????xxx.php/jsp????????utf8???????ü???
????header('conten-type:text/html;charset=utf-8');
?????????CRUD?????????????
????mysql_query("set names utf8");
????-------------------------
????????????????????
????jdbc:mysql://???:3306/????????characterEncoding=utf8
????-------------------------
????java?е???????UTF-8;GBK;GB2312;ISO-8859-1;
???????mysql??????е????utf8;gbk;gb2312;latin1
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11