Parse errors with queries containing multibyte UTF8 characters
Open source C and C++ library for accessing Oracle Databases
Brought to you by:
vince_del_paris
Calling OCI_Prepare with a query with multibyte characters like select 'ç' from dual
. As far as I can tell, this is because OCIPrepareStatement2 expects the length in bytes instead of (utf8)characters.
If I for instance modify OCI_StringGetOracleString
to return strlen(src)
, the query does work.
instantclient: 11.2.0.3
built for 64bit
NLS_LANG=.UTF8
Hi,
I've just committed a fix for that issue in the git repository.
Will be part of upcoming v4.1.0 release next week.
Thanks for reporting :)
vincent
Last edit: Vincent Rogier 2015-04-19
Fix by git commit 9be5fee5
Last edit: Vincent Rogier 2015-04-19
It sure works. And thanks for the quick response.