uniLoader posting Chinese chars

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

uniLoader posting Chinese chars

Post by arusoft » Mon 17 Feb 2014 15:57

I was testing uniLoder to post data from SQL Server to access database for backup purpose. Everything is looking fine till now. But I am seeing Chinese chars in access fields where data type is MEMO.

Please advice.

Thank You.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: uniLoader posting Chinese chars

Post by AlexP » Tue 18 Feb 2014 09:23

Hello,

There is no Memo field in MS SQL Server. Please clarify the field type in the table.

arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

Re: uniLoader posting Chinese chars

Post by arusoft » Tue 18 Feb 2014 22:12

Sorry if I was not clear.
We are posting data from SQL Server to Access.
SQL Server had datatype of varchar(4000). Access has data type of Memo.

Please let me know if you need more clarification.

Thank You.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: uniLoader posting Chinese chars

Post by AlexP » Wed 19 Feb 2014 08:40

Please provide a sample of data stored in this field on SQL Server, data inserted to MS Access, as well as a sample of code you are using for data copying.

arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

Re: uniLoader posting Chinese chars

Post by arusoft » Thu 20 Feb 2014 15:39

I am working on creating sample code for you. But meanwhile can you please advice what would be your suggested way to backup/restore tables in both SQL & Oracle database.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: uniLoader posting Chinese chars

Post by AlexP » Fri 21 Feb 2014 11:49

For full backup we recommend to use standard means of the servers.

arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

Re: uniLoader posting Chinese chars

Post by arusoft » Fri 21 Feb 2014 22:05

Its not full backup. Only selected tables are backed up. please advice in this case. Thank You.

arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

Re: uniLoader posting Chinese chars

Post by arusoft » Sat 22 Feb 2014 06:29

I am not able post attachment. I am not seeing any option on this page.

But here is what I am doing.

1. Create table in Oracle
create table TestTable
(Field1 varchar2(4000) )

Insert values in TestTable
Insert into TestTable values ('TestTable values ')

2. Create a table called TestTable in ACCESS database(Test.mdb)
Have one field called Field1 of type MEMO.

3. Have access database Test.mdb in same directory as application

4.Here is my Delphi code that has two Uniconnection component(One for Oracele and other for ACCESS.), a uniQuery & a uniLoader component.

procedure TForm1.Button1Click(Sender: TObject);
begin
UniConnection1.ProviderName := 'ORACLE';
UniConnection1.Server := 'SERVER_NAME';
UniConnection1.Username := 'Username';
UniConnection1.Password := 'Password';
UniConnection1.LoginPrompt := False;
UniConnection1.Connected := True;

UniQuery1.SQL.Text := 'select * from TestTable';
UniQuery1.Connection := UniConnection1;
UniQuery1.Active := True;

UniConnection2.ProviderName := 'access';
UniConnection2.Database := ExtractFilePath(Application.ExeName)+ 'Test.mdb';
UniConnection2.LoginPrompt := False;
UniConnection2.Connected := True;

UniLoader1.Connection := UniConnection2;
UniLoader1.TableName := 'TestTable';
UniLoader1.LoadFromDataSet(UniQuery1);
end;


You will now chines chars in field1 敔瑳慔汢⁥慶畬獥


If I go ahead and add another field in both Oracle & Access ( Oracle datatype as varchar2(20) and access as Text(20)) and I repeat my test, I will see Chines chars in field1 and proper value in field2.

Please advice.

Thank You.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: uniLoader posting Chinese chars

Post by AlexP » Mon 24 Feb 2014 10:42

We have reproduced the second problem and will investigate the reasons for such behavior.

arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

Re: uniLoader posting Chinese chars

Post by arusoft » Wed 05 Mar 2014 19:11

Alex any update on this? Will appreciate any feedback.

Thank You.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: uniLoader posting Chinese chars

Post by AlexP » Thu 06 Mar 2014 10:47

We will fix the problem till the next release

arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

Re: uniLoader posting Chinese chars

Post by arusoft » Wed 30 Apr 2014 21:47

Hi Alex,

Is this fixed with 5.3?

Thank You.

arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

Re: uniLoader posting Chinese chars

Post by arusoft » Fri 02 May 2014 20:15

Alex,

Any update on this please? Is this fixed with 5.3?

Thank You.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: uniLoader posting Chinese chars

Post by AlexP » Tue 06 May 2014 12:58

We have fixed the problem, however, this fix wasn't included to the current version. We can send you a night build including this fix.

arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

Re: uniLoader posting Chinese chars

Post by arusoft » Tue 06 May 2014 15:23

Thanks Alex. I would really Appreciate that.

Regards.

Post Reply