Article View: borland.public.cppbuilder.internationalization
Article #926W2K, windows controls and character set
From: Petr Sulla
Date: Sat, 08 Sep 2001 08:26
Date: Sat, 08 Sep 2001 08:26
38 lines
2056 bytes
2056 bytes
Hi !
Imagine:
Windows 2000 with system locales set to German. I want to display Russian
text.
const char rus_text[] = {0xea, 0xe5, 0xf4, 0xf6, 0xe4, 0xeb, 0xf1, 0xf4,
0xfb, 0xf1, 0xec, 0xe8, 0xff, 0x00};
TLabel* label;
TButton* button;
label->Font->Name = "Arial Unicode MS"
label->Font->Charset = RUSSIAN_CHARSET;
label->Caption = rus_text;
and Russian characters are shown as expected.
button->Font->Name = "Arial Unicode MS"
button->Font->Charset = RUSSIAN_CHARSET;
button->Caption = rus_text;
and garbage is shown.
Why ?
On German Windows 98 or on W2K with Russian system locales this works just
fine even on TButton and Russian characters are shown.
Do the Windows controls ignore the font character set on W2K, while they
don't do so on W98 ?
How do I make it work under W2K ?
I don't want to force the user to log in as Administrator and change the
system locales just because of displaying a few Russian characters !
Regards
Petr Sulla
Technical Details
Message-ID:
<9nckq5$g9u$05$1@news.t-online.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,99283353e5479f22,start X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2001-09-08 01:31:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: "Petr Sulla" <sulla@ite-web.de> Newsgroups: borland.public.cppbuilder.internationalization Subject: W2K, windows controls and character set Date: Sat, 8 Sep 2001 10:26:34 +0200 Organization: T-Online Lines: 41 Message-ID: <9nckq5$g9u$05$1@news.t-online.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 999937670 05 16702 5tr0S+EESzAVg+ 010908 08:27:50 X-Complaints-To: abuse@t-online.com X-Sender: 320087314325-0001@t-dialin.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200