Solved

Internationalization, IME's, and Delphi

Posted on 2001-08-13
2
585 Views
Last Modified: 2013-12-03
 I need to write a code which may be localized to various Asian locales, and am having trouble getting any component to accept a character glyph entered via a standard Windows IME (I'm using Windows 2000 Pro).

  When I use a component such as TEdit, my entry is translated into a question-mark. I suspect that the reason for this is that TEdit is derived from TCustomEdit, and so the Text field is of type TCaption, which is defined as a String in VCL (as opposed to CLX, where TCaption is defined as a WideString).

  My primary goal would be to know how to get a Chinese character (entered via the Windows Chinese IME) to appear in an edit box, and to have access to that character from a WideString within the code (without it being converted into a '?').

  A secondary goal would be to know how I could manually enter the hex or decimal representation of a Unicode character into the first element of a given WideString. For instance, given the variable A to be a WideString, how could I assign a Chinese character to A[1]?

Thanks,
  Luis
0
Comment
Question by:nylluis
2 Comments
 

Accepted Solution

by:
realzal earned 200 total points
ID: 6390146
The best component for localization you can find at http://www.korzh.com/delphi/localizer/ 
It not free but it is the best you can find.
You must try it.
0
 
LVL 8

Expert Comment

by:TOndrej
ID: 6416636
You're right about TEdit.
You need a Unicode edit control and use a Unicode font.
Re decimal representation: A[1] := #1602;
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now