What does it mean ?
If i compile ZEOS with ZEOS_FULL_UNICODE
i can't open correctly databases with Latin2 encoding.
I think about "SVN rev. 537."
example code
Code: Select all
{$IFDEF ZEOS_FULL_UNICODE}
GetPlainDriver.db_execute_imm(GetDBHandle, PAnsiChar(UTF8String (SQL)));
{$ELSE}
GetPlainDriver.db_execute_imm(GetDBHandle, PAnsiChar(SQL));
{$ENDIF}
If i have LATIN2 databse and ZEOS_FULL_UNICODE
When i execute
INSERT into TABLE_NAME (dane) VALUES ('łęćżę');
My SQL is UTF8String encoding but i need LATIN2 encoding send to PlainDriver
May by wy should change it
Code: Select all
{$IFDEF ZEOS_FULL_UNICODE}
if WE_WANT_UNICODE = TRUE then
GetPlainDriver.db_execute_imm(GetDBHandle, PAnsiChar(UTF8String
else
GetPlainDriver.db_execute_imm(GetDBHandle, PAnsiChar(SQL));
(SQL)));
{$ELSE}
GetPlainDriver.db_execute_imm(GetDBHandle, PAnsiChar(SQL));
{$ENDIF}
or
Code: Select all
{$IFDEF ZEOS_FULL_UNICODE}
GetPlainDriver.db_execute_imm(GetDBHandle, PAnsiChar(SOME_FUNCTION(SQL)));
{$ELSE}
GetPlainDriver.db_execute_imm(GetDBHandle, PAnsiChar(SQL));
{$ENDIF}
SOME_FUNCTION - return string in suitable encoding
Sometimes i need open database in LATIN2 and UTF8 in this same project