Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> ZHS16GBK character and std::string

ZHS16GBK character and std::string

From: gelbeiche <borstel_at_fliegenpilz.de>
Date: 11 Aug 2005 21:38:48 +0200
Message-ID: <m34q9wb6wn.fsf@redrat.quark.de>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US