Article View: borland.public.cppbuilder.internationalization
Article #143Re: VCL and unicode
From: Mark Finkle
Date: Thu, 10 Mar 2005 04:43
Date: Thu, 10 Mar 2005 04:43
38 lines
2599 bytes
2599 bytes
In many cases it may be "good enough" to convert Unicode to MBCS and let the VCL control display the text. It all depends on how internalional you need to make your application. But keep the following in mind: 1. Converting from Unicode to MBCS requires a codepage. Codepages are normally set by your locale/regional settings in Windows. If your codepage does not support the Unicode characters in a given string, things will not work right. 2. Only Unicode controls can display characters from multiple codepages at the same time (like Japanese and Korean in the same text string) 3. The font your using must be contain the characters your trying to display. WinXP makes this easier with its builtin font substitution. This is only the tip of the iceberg when dealing with internationalization. For the VCL, you may want to check out the Tnt Unicode controls. HTH, Mark Finkle "Peter Van Hove" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> wrote in message news:422f1b8f$1@newsgroups.borland.com... > Hi, > > My app internally stores unicode strings that it reads directly from CD. > To display it, the widechar strings are handed to VCL controls that > convert it to MBCS > (E.g. ListView, TreeView controls) > I suppose this is the best method for Win95, Win98 etc. > However I wonder if this is the best approach for modern OS like WinXP ? > Fact of the matter is that if I use a (e.g.) US Windows and want to > display Arabic texts like that I am running into problems UNLESS the > proper Arabic support is installed on the OS. > > How can one work around that ? > Are there VCL controls that use unicode and interface with the unicode > stuff on XP ? >
Technical Details
Message-ID:
<422fd07d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<422f1b8f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,bd90165583a3eab X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mark Finkle" <mark_finkle@no.spam.hotmail.com> Newsgroups: borland.public.cppbuilder.internationalization References: <422f1b8f$1@newsgroups.borland.com> Subject: Re: VCL and unicode Date: Wed, 9 Mar 2005 23:43:40 -0500 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 69.162.33.46 Message-ID: <422fd07d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110429821 69.162.33.46 (9 Mar 2005 20:43:41 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail