Connect one module(Delphi 2009) to databases with different codepage - unicode and win1251

Anatoliy

Member²
I want to use one module (Delphi 2009 DOA 4.1.1), which has TOracleSession and TOracleDataSet where FieldEditor filled with TStringField for varchar2 table
 
Last edited:
You can set Oracle.NoUnicodeSupport to True at runtime. As a result, the unicode characters will be converted to the client character set, and no TWideStringFields will be created.

You can also do the exact opposite, and set TOracleSession.ForceWideStringFields to True. Now you always have TWideStringFields.
 
Back
Top