Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> ZHS16GBK character and std::string
I have an oracle database with ZHS16GBK character set.
I use OTL the library (Oracle Template Library in C++ by S.Kuchin)
to access the data from the database.
This library offers the possibility to read database strings
to the std::string of C++.
This is certainly no problem with one byte character sets.
But I'm not sure if it is save to deal in this way with
multibyte character sets like ZHS16GBK.
In a first small prograam it worked. I set NLS_LANG at
client side to ZHS16GBK and two chinese characters
are read to a std::string which contains 4 byte.
But is this safe ?
Received on Thu Aug 11 2005 - 14:38:48 CDT
![]() |
![]() |