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.
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:
This components can be used from Delphi 6 up to Delphi 2007.
Kind Regards,
Joachim