UTF-8 problems with Firebird and Blob

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Roliat
Posts: 2
Joined: Sun 15 Apr 2012 14:13

UTF-8 problems with Firebird and Blob

Post by Roliat » Sun 15 Apr 2012 14:26

Hello,

I'm trying to insert/read some data in unicode format. When I store chars like "ä", "ö" etc. in VarChar-Fields, all is working fine.

But when I store the same data in a blob-field, the will be stored as "????".

I create a database with default character set utf8, and also created the blobs with utf8.

Blob = Subtype text, segment size 80, collate/charset: utf8
Varchar = 100 (chars), utf8

What could be the problem? Before I connect, I set the following options:

Connection.SpecificOptions.Values['Charset'] := 'UTF8';
Connection.SpecificOptions.Values['UseUnicode']:='True';
Connection.SpecificOptions.Values['EnableMemos']:='True';

Can you please post me a demo-code, showing how to insert an utf8-string into a blob-field? I use parameters while inserting/updating.

Thanks in advance.

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Post by ZEuS » Tue 17 Apr 2012 11:01

Hello.
Please specify the Delphi version you are using.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 23 Apr 2012 07:30

Please let me know if the problem was solved.

Post Reply