如果用语言的api的话好像是连接数据库以后加一句:“mysql_query("set names gb2312")”
如果是导入导出你看看表的编码集对不对:
比如:
CREATE DATABASE `bankmanage` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `bankmanage`;
CREATE TABLE IF NOT EXISTS `account` (
`aid` bigint(11) NOT NULL AUTO_INCREMENT,
`uid` varchar(20) NOT NULL,
`password` varchar(256) NOT NULL,
`money` bigint(11) NOT NULL DEFAULT '0',
`create_date` date NOT NULL,
`lost` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`aid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6222003202100000009 ;