Comments (8)
Hi,
What version of ocilib are you using ?
What ocilib charset mode (ansi/widechar) ?
What platform ?
Regards,
Vincent
from ocilib.
We are using ocilib 4.2.0 with charset mode ANSI.
The c++ Middleware runs on Red Hat Enterprise Linux Server release 6.7.
The Database is: Oracle Database 12c Enterprise Edition 12.1.0.2.0 64 bit
We found out that it works as desired without further adjustments of the middleware if the database is installed with an "AL32UTF8" Charset. (NLS_CHARACTERSET = AL32UTF8)
The other database-installation was done with "WE8ISO8859P15", this turned all korean characters to '¿¿¿¿'.
Still weird that it worked via a C# service.
My guess: The C# -Service wrote the strings as nvarchar, which is set to "AL16UTF16" in the database.
It seems like ocilib binds the values as varchar, which is set to "WE8ISO8859P15".
But that's really only me guessing.
from ocilib.
Hi,
you can use OCI_BindSetCharsetForm(bind, OCI_CSF_NATIONAL) to indicate you're binding strings using national charset) :)
Regards,
Vincent.
from ocilib.
Thanks!
I'll try that :)
from ocilib.
Hi,
Any news ?
Regards,
Vincent
from ocilib.
Sry that i was quiet for so long.
The problem is that i don't have an Database to test it any more.
The Only one that i can test against was re-installed with "AL32UTF8".
If i get a chance to test OCI_BindSetCharsetForm(bind, OCI_CSF_NATIONAL) against a "WE8ISO8859P15"-database i will. But right now i don't have this possibility in the current project.
We are supposed to get a new development-DB where we can play around, but i cannot change the charsets in the database we have right now.
from ocilib.
FYI: We can successfully write Unicode to a database using OCILIB, using ANSI charset mode on Windows. We have this code:
_putenv_s( "NLS_LANG", "American_America.UTF8");
boolean ret = OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT);
_putenv_s( "NLS_LANG", "");
And it also requires the database to have a suitable character set I think.
Any strings you transfer have to be UTF8 encoded first!
from ocilib.
Closing it as answers have been provided and no more OP activity
from ocilib.
Related Issues (20)
- OCI_DequeueGet() returns messages with OCI_Object payloads that can have NULL properties while being NOT NULL when queued HOT 6
- I encountered a confusing issue HOT 3
- configure script fails to detect oracle headers path on Oracle Linux 7 HOT 3
- Selecting ADT object hangs when OCILIB initialized with OCI_ENV_THREADED in develop-4.7.5 HOT 2
- Cancel/Terminate/Stop connection request HOT 2
- C++ API: Exception GetMessage HOT 3
- OCI_SubscriptionRegister() generates a segfault on failure HOT 7
- ocilib::Lob::GetConnection() does not compile anymore HOT 7
- OCI_GetTimeout() always returns 0 since v4.7.0 HOT 11
- OCI_GetSqlIdentifier() returns invalid values for Scrollable Statements when called more than once HOT 8
- Strange behaviour with XMLTYPE HOT 23
- OCI_TypeInfoGet() : In case of failure, newly created OCI_TypeInfo object is not removed from OCI_Connection internal cache
- OCI_GetServerMajorVersion() returns wrong values for Oracle Server version < 18.1 HOT 1
- OCI_RefToText() return garbage when charset is OCI_CHARSET_WIDE HOT 1
- Error occurred at OcilibEnvironmentInitialize: Cannot load OCI shared library (oci.dll) HOT 4
- Error occurred at OcilibResultsetFetchFirst: A null Resultset handle has been provided HOT 5
- Regarding the use of connection pool to obtain links, will it be automatically recycled by connection pool? HOT 1
- I don't know why I suddenly reported this error: ocilib\include\ocilibcpp\detail\exception.hpp(92): error C2061: syntax error: identifier 'nothrow' HOT 1
- Regarding using ocilib::Pool to get links ,what happens if the maximum link is reached? HOT 1
- symbol not found in flat namespace '_OCIAQDeq' (macOS arm64) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocilib.