Page 1 of 1

garbled characters with sqlserver & lazarus &v4.59

Posted: Mon 10 Dec 2012 03:42
by grays
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 ?

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

Posted: Mon 10 Dec 2012 12:01
by AndreyZ
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.

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

Posted: Tue 11 Dec 2012 01:15
by grays
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

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

Posted: Tue 11 Dec 2012 06:30
by AndreyZ
I am glad I could help. Feel free to contact us if you have any further questions about UniDAC.