mysql++
liooi 2009-11-19 03:02:00 使用mysql++,查询字段包含中文结果是乱码。。。
原例子:
mysqlpp::Connection conn(false);
if (conn.connect(db, server, user, pass))
{
mysqlpp::Query query = conn.query("select * from Test");
mysqlpp::StoreQueryResult res = query.store();
if (res) {
for (size_t i = 0; i < res.num_rows(); ++i)
{
cout << setw(30) << res[i]["item"] ;
}
...
请问高手如何解决.
http://topic.csdn.net/u/20080427/10/6f29ef26-8d22-477f-b956-40d68bc66a44.html
相似问题,没说如何解决...