Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Internationalization, IME's, and Delphi

Posted on 2001-08-13
2
Medium Priority
?
605 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
realzal earned 600 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

598 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