🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Unicode? Help!

#748
From: Adib Taraben
Date: Thu, 28 Feb 2002 08:56
58 lines
2708 bytes
Hi Petr,

can you provide some code (sample/source) to the community?

Adib.

Petr Sulla wrote:
> On Fri, 18 Jan 2002 09:53:30 -0500, "James White" <jamesw@avi.com>
> wrote:
> 
> 
>>1.) What does unicode compliance in a Delphi & C++ Builder application
>>(backend, frontend) usually entail? Is it as simple as a compiler switch and
>>replacing all chars with TCHAR's?
>>
> 
> If you #define UNICODE, the Windows calls are translated to the
> Unicode variants. Sadly, your app won't run on W9x then.
> 
> And you have to replace all your strings with Unicode variants -
> AnsiString with WideString, string with wstring and char with wchar_t.
> 
> 
>>2.) Is there any way to ensure that an application does not use any plain
>>character functions when compiled for Unicode?
>>
> 
> None that I know about. You have to check the source manually.
> 
> 
>>3.) What does it mean when people say VCL does not support Unicode? Does
>>
> 
> That means all strings you can put to the VCL componets are
> AnsiStrings. Forget Unicode.
> 
> 
>>that mean that data-entry in TEdit's etc can only support the basic English
>>character set?
>>
> 
> It supports the character set of the selected active language. It
> supports even multibyte (Japanese...), when you have Japanese Windows
> or W2000 with Japanese system locales.
> 
> 
>>4.) What would you do?
>>
> 
> I wrote my own Unicode aware VCL components, that use ExtTextOutW,
> which works on W2000 and W9x. The text input remained restricted to
> the Windows settings, but is converted to Unicode immediately after
> the user typed it in.
> 
> Regards
> 
> 		Petr Sulla
> 
Technical Details
Message-ID: <3C7DF0AF.5070202@wige-data.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-06!supernews.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3c4836ec_2@dnews> <3c7b97a5.24577113@111.111.111.1>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,aa344d221d51009e
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2002-02-28 01:11:32 PST
Message-ID: <3C7DF0AF.5070202@wige-data.de>
Date: Thu, 28 Feb 2002 09:56:15 +0100
From: Adib Taraben <Taraben.aA@wige-data.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internationalization
Subject: Re: Unicode? Help!
References: <3c4836ec_2@dnews> <3c7b97a5.24577113@111.111.111.1>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.149.67.237
X-Trace: dnews 1014886574 213.149.67.237 (28 Feb 2002 00:56:14 -0800)
Lines: 60
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-06!supernews.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews