Solved

Internationalization, IME's, and Delphi

Posted on 2001-08-13
2
586 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb submit form as a POST request 4 303
drawing animated level bar based on numbers 3 97
Create a path if not exists 7 77
Dev express lookupcombo 3 27
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

770 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