Article View: borland.public.cppbuilder.internationalization
Article #715Re: Edit Box
From: Yogesh Ketkar
Date: Fri, 31 Jan 2003 04:51
Date: Fri, 31 Jan 2003 04:51
56 lines
2613 bytes
2613 bytes
Hi, That's not weird, applications like Notepad, Word etc. do special handling for this. Basically Windows need "unicode character string" ( or UCS2 to be more precise) to render text in chinese, when you type in normal edit box irrespective of your locale settings, it tries to render text using AnsiString or single byte string. So unless you do something special(may be derive a class from TEdit) you are not going to get what you want. Actually even i am looking for a straigtforward way by which say chinese string can be rendered in TButton, TLabel, TEdit etc. regards, yogesh KC wrote: > Hi, > > Yes I did. I also changed the font that supports chinese characters. The > weird thing is that I am able to enter chinese character with notepad. But I > can't with Builder editor. > > Regards, > KC > > "Ciprian" <Ciprian.Lupu@fmc-romania.ro> wrote in message > news:3e38fc1c$1@newsgroups.borland.com... > >>"KC" <pine73@icqmail.com> wrote in message >>news:3e38e687@newsgroups.borland.com... >> >>>I am doing application localization from English to Chinese. I am using >>>Windows 2000 and C++ Builder 6.0. I changed the locale to Chinese >> > (Taiwan) > >>>and run the application. I tried to enter a chinese characters into an >> >>edit >> >>>box but I got "rubish". What needed to be done here ? >>> >>>Thanks. >>> >>> >> >>Did You put Regional Settings AND Imput Locales on Chinese (Taiwan)? >> >>Ciprian >> >> >> > > >
Technical Details
Message-ID:
<3E3A00EE.4090102@pspl.co.in>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3e38e687@newsgroups.borland.com> <3e38fc1c$1@newsgroups.borland.com> <3e39fc29@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,8160627fcd9505d8 X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2003-01-30 21:09:04 PST Message-ID: <3E3A00EE.4090102@pspl.co.in> Date: Fri, 31 Jan 2003 10:21:58 +0530 From: Yogesh Ketkar <yogi@pspl.co.in> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internationalization Subject: Re: Edit Box References: <3e38e687@newsgroups.borland.com> <3e38fc1c$1@newsgroups.borland.com> <3e39fc29@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 202.54.11.72 X-Trace: newsgroups.borland.com 1043988701 202.54.11.72 (30 Jan 2003 20:51:41 -0800) Lines: 57 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail