🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #798

Re: ADO with unicode querys...

#798
From: Bernd Muent
Date: Fri, 29 Apr 2005 09:51
17 lines
1658 bytes
Viatcheslav V. Vassiliev schrieb:
> Which components do you use? Try use TADOCommand and CommandText - it is 
> WideString. It seems that somewhere there is convertion AnsiString -> 
> WideString.

It tried it this way:
ADOCommand* ac=new TADOCommand(this);
WideString wS="Insert into test (f1,f2) values ('\u4e01 ','AAA')";
ac->CommandText=wS;
ac->Connection=dbConn;
ac->Execute();
delete ac;

And this produces an entry "?"/"AAA" in the mdb-Database (viewing in 
Access, not in CBuilder!).

Greetings, Bernd
Technical Details
Message-ID: <427203b7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!news2.euro.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42709d41@newsgroups.borland.com> <42713e9d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,83edafb77086ec9a
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 29 Apr 2005 11:51:48 +0200
From: Bernd Muent <kontakt@bmservices.de>
Organization: euroscript Deutschland GmbH
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: de-DE, de, en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: ADO with unicode querys...
References: <42709d41@newsgroups.borland.com> <42713e9d$1@newsgroups.borland.com>
In-Reply-To: <42713e9d$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.145.19.66
Message-ID: <427203b7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114768311 62.145.19.66 (29 Apr 2005 02:51:51 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!news2.euro.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail