如何从oracle数据库中读取unicode C++

How to read unicode from oracle database c++

我正在尝试 select 使用 C++ 从 oracle 数据库中用阿拉伯字母编写的字符串 问题是我读的是汉字 我正在使用他们的 globalization guide

Environment* env = Environment::createEnvironment(" US7ASCII","OCCIUTF16");
Connection* con=env->createConnection("","","");
Statement* stmt= con->createStatement("select name from table where id=10");
ResultSet* rs= stmt->executeQuery();
While(rs->next())
{
   rs->getUString(1);
}

那么我怎样才能准确地阅读它或者我错过了什么

尝试修改此代码:

Environment* env = Environment::createEnvironment("AR8MSWIN1256","OCCIUTF16");