I am trying to select string written in Arabic letters from oracle database using C++ The problem is i read Chinese characters instead I am using their 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);
}
So how can i read it accurately or what i am missing
Try with this code modification:
Environment* env = Environment::createEnvironment("AR8MSWIN1256","OCCIUTF16");