Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VCL Internationalization -- Asian characters

6 views
Skip to first unread message

epea...@rumbledev.com

unread,
Jul 26, 2007, 12:13:23 PM7/26/07
to
I'm trying to internationalize a BCB 5 application to support Asian
character sets.
I'm starting with a sample app, and a Traditional Chinese string that
I'm putting onto a label on a form.
I think there's one piece of information I'm missing.

Using information found on this group, i've figured out how to:

> create a resource DLL
> encode the Unicode strings in the resource DLL
> Load the Unicode string
> Use the Windows API WideCharToMultiByte function
(I tried using the VCL WideCharToStr() functions, but got back
strings full of question marks. Using the Windows API call allowed me
to manually set the codepage, and I get what looks like valid
multibyte characters.)

When I assign the string I get back from WideCharToStr() to the label,
however, I still get garbage. I've set the registry entry int Software
\Borland\Locales so that the .CHT version of the form loads when I run
my application, but it's still wrong.

Any suggestions? To see the correct characters, do I need to have
Chinese windows installed so that the global codepage (or whatever
it's called) is correct, or is there some step I'm missing? Any help
would be greatly appreciated.

Joachim Kessel

unread,
Aug 18, 2007, 6:08:43 AM8/18/07
to

Hi,

VCL controls up to Delphi 2006 are not able to support Unicode.
You can try using the "TMS Unicode Component Pack" from TMS Software:

http://www.tmssoftware.com/

This components can be used from Delphi 6 up to Delphi 2007.

Kind Regards,

Joachim

0 new messages