zeos and unicode

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
sancho1980
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 10.07.2006, 08:51

zeos and unicode

Post by sancho1980 »

hi
this is a general question: can i use the zeos components in order to properly access and modify unicode-fields in my firebird database from delphi 7?
i'm not getting it done...
thanx,
martin
Terence
Zeos Dev Team
Zeos Dev Team
Posts: 141
Joined: 22.09.2005, 14:11
Location: Stuttgart
Contact:

Post by Terence »

You have to define use charset UNICODE_FSS when creating firebird database file.

Using following code (untested) should create the needed db file:
ZConnection.Properties.Add(
'CreateNewDatabase=CREATE DATABASE 'C:\firebirddb.FDB' USER 'SYSDBA' PASSWORD 'masterkey' PAGE_SIZE 4096 DEFAULT CHARACTER SET UNICODE_FSS');
ZConnection.Connect;

Then for every connection you should try sql command ..
SET NAMES UNICODE_FSS;
execute before accessing db.

Just a guess.-
fabian
Post Reply