(1)mysql服务启动时,指定编码,(mysql client连接时,也可以指定)
(2)C 库client调用,通过函数指定 mysql_set_character_set(con,"utf8");