garbled characters with sqlserver & lazarus &v4.59

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
grays
Posts: 2
Joined: Mon 10 Dec 2012 03:36

garbled characters with sqlserver & lazarus &v4.59

Post by grays » Mon 10 Dec 2012 03:42

I use v4.59 under lazarus 1.04 connect to sqlserver 2005 ,but when filed value is chinese ,i got garbled characters
i also set
UniConnection1.SpecificOptions.Values['Language']:='Simplified Chinese';


how to fix it ?

AndreyZ

Re: garbled characters with sqlserver & lazarus &v4.59

Post by AndreyZ » Mon 10 Dec 2012 12:01

Hello,

We know about this problem. The point is that Lazarus under Windows does not correctly work with wide strings. To solve the problem, you should add the paswstring unit to the USES clause of your unit and rebuild your application.

grays
Posts: 2
Joined: Mon 10 Dec 2012 03:36

Re: garbled characters with sqlserver & lazarus &v4.59

Post by grays » Tue 11 Dec 2012 01:15

AndreyZ wrote:Hello,

We know about this problem. The point is that Lazarus under Windows does not correctly work with wide strings. To solve the problem, you should add the paswstring unit to the USES clause of your unit and rebuild your application.
wow, thank you AndreyZ, paswstring work fine now , :P

AndreyZ

Re: garbled characters with sqlserver & lazarus &v4.59

Post by AndreyZ » Tue 11 Dec 2012 06:30

I am glad I could help. Feel free to contact us if you have any further questions about UniDAC.

Post Reply