🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #199

Re: Unicode char-s on control

#199
From: Tumurbaatar S.
Date: Mon, 09 Oct 2006 02:40
36 lines
2665 bytes
Thank you, all!
Ok, so I can manually or thru 3rd party controls manage Unicode char-s
for the controls. Is this true for database controls? I'm planning to use MS 
SQL2K with
NVARCHAR string columns and TADOXXX controls. Can TADOXXX components
read/write Unicode text?


"Lesley Anne" <mspfila-ng@yahoo.com> wrote in message 
news:451ada0d$1@newsgroups.borland.com...
> "Tumurbaatar S." <spam_tumur@magicnet.mn> wrote in message 
> news:451aac8f@newsgroups.borland.com...
>> Hi!
>> I'm trying to write my first international app in BCB6.
>> It seems there's no way to display Unicode char-s that
>> do not belong to any charset/code page (like Windows-1251 and etc).
>> The Text and Caption properties accept only AnsiString string, so
>> Unicode char-s are not allowed.
>> Yes?
>
> Even though Text and Caption properties are listed as being AnsiString, 
> you can assign WideString values to them as well, since the implementation 
> of the AnsiString type isn't limited to single byte encodings. 
> Unfortunately, I haven't been able to find a way to make them actually 
> display correctly when given Unicode values higher than 0x00FF.  The 
> implementation of the display doesn't seem to have been done correctly.
>
> There are, however, third-party component libraries available to take up 
> the slack.  The one I've heard about the most often (though I haven't used 
> it myself) is TNT.
> http://www.tntware.com/delphicontrols/unicode/
> From the looks of it, you simply replace your TLabel's with TTntLabel's, 
> TEdit's with TTntEdit's, etc. and then you can use Unicode values and have 
> them display correctly, while keeping the ease-of-use of the VCL.
>
> 
Technical Details
Message-ID: <4529b788@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <451aac8f@newsgroups.borland.com> <451ada0d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,c35059606ebe258
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Tumurbaatar S." <spam_tumur@magicnet.mn>
Newsgroups: borland.public.cppbuilder.internationalization
References: <451aac8f@newsgroups.borland.com> <451ada0d$1@newsgroups.borland.com>
Subject: Re: Unicode char-s on control
Date: Mon, 9 Oct 2006 10:40:35 +0800
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
NNTP-Posting-Host: 202.170.80.81
Message-ID: <4529b788@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1160361864 202.170.80.81 (8 Oct 2006 19:44:24 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail