Home » Developer & Programmer » Precompilers, OCI & OCCI » Unicode Support - CreateEnvironment
Unicode Support - CreateEnvironment [message #250721] Wed, 11 July 2007 01:26 Go to next message
srinimk
Messages: 1
Registered: July 2007
Junior Member
Hi,

The database version is Oracle 10gR2.

Our application in C++ (Unix SPARC) uses OCCI interface to talk to the ORacle server.

We need to support unicode.

Can you please let me know how to initialize the environemnt object in the OCCI.

The DB setting is
NLS_LANGuage : AMERICAN
NLS_TERRITORY: AMERICA
NLS_CHARACTERSET : AL32UTF8
NLS_NCHAR_CHARACTERSET : UTF8

=== When I try to create the environment using
occi::CreateEnvironment ('UTF8','UTF8',THREADED_MUTEXED),

the application crashes after some time. However , If the create environment method uses the default character set, it works fine.

Can you please let me know how to fix this issue.

Regards

Sri
Re: Unicode Support - CreateEnvironment [message #273094 is a reply to message #250721] Tue, 09 October 2007 01:38 Go to previous message
kmohan
Messages: 28
Registered: July 2005
Junior Member
Shouldn't you be using double-quotes instead of single quotes, while passing the charsets?
Previous Topic: Problem with C++ STL string, getString() and VARCHAR...
Next Topic: proc - how to close a connection
Goto Forum:
  


Current Time: Fri Mar 29 04:59:24 CDT 2024