🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO + unicode

#1713
From: Viatcheslav V. Vassiliev
Date: Thu, 15 Apr 2004 14:15
42 lines
2613 bytes
> TntMemo1->Lines->Text =
> ADOTable1->FieldByName(WideString("Definition"))->AsString;

AsWideString may solve problem. Be sure that fields is TWideStringField.
FieldByName(WideString("Definition")) will anyway use AnsiString since it
accepts only it but not WideString as parameter.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Christoffer Christoffersen" <christoffer.christoffersen@lxg.com>
�������/�������� � �������� ���������:
news:407e9028@newsgroups.borland.com...
> The component I use supports cyrillic characters and when I load it from a
> textfile it works ok, but the problem seems to be
> reading from MS-Access using the ADO-components. To be more clear on my
> problem comes an example of my code...
>
> TntMemo1->Lines->Text =
> ADOTable1->FieldByName(WideString("Definition"))->AsString;
>
> Could someone guide me a bit on this one, thanks
> C
>
>
>
> "Christoffer Christoffersen" <christoffer.christoffersen@lxg.com> skrev i
> meddelandet news:407e747d$1@newsgroups.borland.com...
> > Hi!
> > I am really stuck with this problem. How can I read unicode characters
> > (cyrillic characers) that are stored in a  MS-Access-table ?
> >
> > Thanks!
> >
> >
>
>
Technical Details
Message-ID: <407e98f6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!wn14feed!worldnet.att.net!216.196.106.140!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc70.webusenet.com!c03.atl99!news.usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <407e747d$1@newsgroups.borland.com> <407e9028@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,c891a85e9b231b29
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-04-15 07:34:59 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <407e747d$1@newsgroups.borland.com> <407e9028@newsgroups.borland.com>
Subject: Re: ADO + unicode
Date: Thu, 15 Apr 2004 18:15:20 +0400
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.234.218.42
Message-ID: <407e98f6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1082038518 213.234.218.42 (15 Apr 2004 07:15:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!wn14feed!worldnet.att.net!216.196.106.140!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc70.webusenet.com!c03.atl99!news.usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail