VC无法向mysql添加中文信息,该怎么处理

VC无法向mysql添加中文信息
如题
在命令行和mysql-front环境下直接运行语句都可以成功添加,但是程序中却失败.
+--------------------------+--------------------------+
|   Variable_name                         |   Value                                         |
+--------------------------+--------------------------+
|   character_set_client           |   gb2312                                       |
|   character_set_connection   |   gb2312                                       |
|   character_set_database       |   gb2312                                       |
|   character_set_filesystem   |   binary                                       |
|   character_set_results         |   gb2312                                       |
|   character_set_server           |   gb2312                                       |
|   character_set_system           |   utf8                                           |
|   character_sets_dir               |   F:\mysql\share\charsets\   |
+--------------------------+--------------------------+

请大家谈谈可能的解决思路,分不够可以再加

------解决方案--------------------
mysql_query(MyData, "SET NAMES 'gb2312 ' "); // 'gb2312 '设定数据库可支持中文字符集
------解决方案--------------------


建立数据库的时候选择使用 utf-8 字符集合