本文介绍了通过C ++从MYSQL读取UNICODE数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从mysql DB读取unicode(日本语)数据并将其写为MSAccess(能够写unicode)时,我也遇到了同样的问题.
然后我更改了连接字符串并设置了characteret = utf8,然后值显示为"日本語"
但是我应该在代码中进行哪些更改,以便获得正确的值,即日本语.
读取值后的任何想法我都将其存储在C ++代码的_variant_t中
任何人都有解决方案.. ??

在此先感谢

i have same problem when i am reading unicode (日本語)data from mysql DB and writing it in to say MSAccess(capable to writ unicode) it is comming ???
then i changed connection string and set characterset=utf8 then value is coming as ''日本語''
but what i should change in my code so that i will get correct value i.e. 日本語.
any idea after reading the value i am storing it in _variant_t in c++ code
any one has any solution..??

Thanks in advance

推荐答案



这篇关于通过C ++从MYSQL读取UNICODE数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 21:15