🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Unicode? Help!

#744
From: Petr Sulla
Date: Tue, 26 Feb 2002 14:22
40 lines
2488 bytes
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: <3c7b97a5.24577113@111.111.111.1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <3c4836ec_2@dnews>

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-26 06:25:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: nospam@ite-web.de (Petr Sulla)
Newsgroups: borland.public.cppbuilder.internationalization
Subject: Re: Unicode? Help!
Date: Tue, 26 Feb 2002 14:22:01 GMT
Organization: T-Online
Lines: 40
Message-ID: <3c7b97a5.24577113@111.111.111.1>
References: <3c4836ec_2@dnews>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1014733411 05 28365 H9ksT17GSNAb1X 020226 14:23:31
X-Complaints-To: abuse@t-online.com
X-Sender: 320087314325-0001@t-dialin.net
X-Newsreader: Forte Free Agent 1.21/32.243