ClientCodePage of ZConnection can NOT bet set for Oracle-DB
Posted: 03.06.2010, 16:05
Hello
i'am using Zeos 6.6.6 stable on Windows XP and a Oracle 10g XE Database.
I have big Problem with the German Umlaut (öäü).
On the DB i have NLS_CHARACTERSET = WE8MSWIN1252
On my Client i have Windows Codepage 1252 or 850 and i have
set all differnt NLS_LANG System-Var (NLS_LANG=GERMAN_SWITZERLAND.WE8MSWIN1252 for Ex.)
If i enter "ö" in a TDBGrid which is connectet via TZConnection then
i get chr(195), chr(182) in the DB. If i look at this via sqlplus or via Toad
i have no Way to get the "ö" again.
In the Sourcecode of Zeos i have fount on Line 407 of ZDbcOracle the
following:
(*
{ Sets a client codepage. }
if FClientCodePage <> '' then
begin
SQL := PChar(Format('SET CHARACTER SET %s', [FClientCodePage]));
FPlainDriver.ExecQuery(FHandle, SQL);
CheckOracleError(FPlainDriver, FHandle, lcExecute, SQL);
DriverManager.LogMessage(lcExecute, FPlainDriver.GetProtocol, SQL);
end;
*)
This seems to set the Character Set but it is commented out, so it does
nothing.
Can anyone help me.
Thanks a lot
André
i'am using Zeos 6.6.6 stable on Windows XP and a Oracle 10g XE Database.
I have big Problem with the German Umlaut (öäü).
On the DB i have NLS_CHARACTERSET = WE8MSWIN1252
On my Client i have Windows Codepage 1252 or 850 and i have
set all differnt NLS_LANG System-Var (NLS_LANG=GERMAN_SWITZERLAND.WE8MSWIN1252 for Ex.)
If i enter "ö" in a TDBGrid which is connectet via TZConnection then
i get chr(195), chr(182) in the DB. If i look at this via sqlplus or via Toad
i have no Way to get the "ö" again.
In the Sourcecode of Zeos i have fount on Line 407 of ZDbcOracle the
following:
(*
{ Sets a client codepage. }
if FClientCodePage <> '' then
begin
SQL := PChar(Format('SET CHARACTER SET %s', [FClientCodePage]));
FPlainDriver.ExecQuery(FHandle, SQL);
CheckOracleError(FPlainDriver, FHandle, lcExecute, SQL);
DriverManager.LogMessage(lcExecute, FPlainDriver.GetProtocol, SQL);
end;
*)
This seems to set the Character Set but it is commented out, so it does
nothing.
Can anyone help me.
Thanks a lot
André