OTL 4.0, Examples for Oracle 11g (R2), UTF8

The examples below show how to use OTL with Oracle 11g (Release 1 and Release 2), and UTF8 based strings. At the database level,, the string format may vary, and at least at the C++ level all string data gets converted  into '\0' terminated byte arrays because UTF8 is byte oriented.  In order to enable OTL/OCI11g(R2) and UTF8, the following #defines need to be defined: #define OTL_ORA11G (#defined OTL_ORA11G_R2 ), #define OTL_ORA_UTF8. #define OTL_UNICODE supports UTF-16 and #define OTL_ORA_UTF8 supports UTF8.

See Oracle 9i UTF8 / OCI examples for more detail, they should work for Oracle 11g (Release 2).

Prev NextContentsGo Home

Copyright 1996-2017, Sergei Kuchin, email: skuchin@gmail.com, skuchin@gmail.com .

Permission to use, copy, modify and redistribute this document for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.