OCIUnicode / UnicodeEnvironment / UseUnicode => What's the difference?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
JamesInform
Posts: 19
Joined: Sun 11 May 2014 18:28

OCIUnicode / UnicodeEnvironment / UseUnicode => What's the difference?

Post by JamesInform » Thu 29 Jan 2015 13:46

Hi,

I have been rushing through your forum and documentation but could not get an answer on that.

Just for your information: I am using Delphi XE7 and connect to an Oracle 12c configured using unicode nsl charset ALU32UTF8 (varchar2 fields with Char as the length semantic).

So please explain in detail how to use these three unicode setting! :idea:

1. OCIUnicode => Global variable which can be set in source code only.
2. UseUnicode which is an option in the TOraSession.
3. UnicodeEnvirnment which also is an option in the TOraSession.

UnicodeEnvironment isn't even mentioned in your documentation center. :shock:

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCIUnicode / UnicodeEnvironment / UseUnicode => What's the difference?

Post by AlexP » Fri 30 Jan 2015 09:48

Hello,

OCIUnicode is an obsolete variable and it was kept for backward compatibility. In the new versions, you should use the UseUnicode and UnicodeEnvironment options.

If the UnicodeEnvirnment option is set to True, the query text will be passed to the server in the UniCode encoding, not depending on the client charset.

JamesInform
Posts: 19
Joined: Sun 11 May 2014 18:28

Re: OCIUnicode / UnicodeEnvironment / UseUnicode => What's the difference?

Post by JamesInform » Fri 30 Jan 2015 14:01

Thanks Alex.

That helped a lot! :!:

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCIUnicode / UnicodeEnvironment / UseUnicode => What's the difference?

Post by AlexP » Tue 03 Feb 2015 07:42

You are welcome. Feel free to contact us if you have any further questions.

Post Reply