UTF8 / TIBCStoredProc-Problems

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Jank
Posts: 35
Joined: Tue 11 May 2010 11:57

UTF8 / TIBCStoredProc-Problems

Post by Jank » Mon 12 Oct 2015 09:33

Hi,

I'am still playing with Delphi 10 Seattle and IBDAC 5.4.11 and UTF8.

This is my Database:

Code: Select all

set term ^ ; 

set SQL DIALECT 3^
set names UTF8^

create database 'localhost/3050:d:\db\test.fdb'
user 'SYSDBA' password 'masterkey'
page_size 16384
default character set UTF8 collation UTF8^

create procedure SP_GETCHAR5
returns (
    DATA char(5))
as
begin
  data = '12345';
end^

set term ;^
My Delphi-Project simply consists of a TIBCConnection with these options:
Charset = 'UTF8'
UseUnicode = True
EnableMemos = True

and a TIBCStoredProc that is calling SP_GetChar5.

Here is my Source:

Code: Select all

  IBCConnection1.Open;
  IBCStoredProc1.ExecProc;
  self.caption := IBCStoredProc1.Params[0].asstring;
  IBCConnection1.Close;
If I execute that, the result is: '��G'#2#1

If I compile the same project with xe7 and Ibdac 5.4.11 for the same database I have no Problem.

What am I doing wrong?

Regards, Jan

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: UTF8 / TIBCStoredProc-Problems

Post by ViktorV » Mon 12 Oct 2015 10:55

We have already fixed this issue. The fix will be included in the next IBDAC build.

Jank
Posts: 35
Joined: Tue 11 May 2010 11:57

Re: UTF8 / TIBCStoredProc-Problems

Post by Jank » Tue 13 Oct 2015 12:20

That's great! When can I expect the next build or is there a nightly build available?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: UTF8 / TIBCStoredProc-Problems

Post by ViktorV » Tue 20 Oct 2015 09:24

We can send you a night build including the fix. For this, please send your license number for IBDAC and the IDE version to viktorv*devart*com.

Post Reply