🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: txt Unicode

#212
From: Andrue Cope [TeamB]
Date: Mon, 21 Mar 2005 12:16
19 lines
1475 bytes
simone wrote:

> I want assign text to a Label->Caption property

Then you have a possible problem.

The VCL uses MBCS not Unicode. You will need to either render the
characters yourself (you already know how to do this) or else convert
from the Unicode to MBCS using WideCharToMultiByte() or one of the
several AnsiString functions and methods available.

You might also have to consider the CharSet propert of the component
when doing this. FWIW if you look up "character set" in the help you
will find a short section that discusses the issues.

-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <423ebb7f$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <423eac7e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,f5ae0115cc435b60
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: txt Unicode
Newsgroups: borland.public.cppbuilder.internationalization
References: <423eac7e@newsgroups.borland.com>
Date: Mon, 21 Mar 2005 12:16:44 +0000
User-Agent: XanaNews/1.17.3.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <423ebb7f$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111407487 217.207.223.34 (21 Mar 2005 04:18:07 -0800)
Lines: 19
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail