Discussion:
question about character set
(too old to reply)
bar
2008-05-09 20:59:10 UTC
Permalink
Dear Borland Gurus

I have a PC Win XP Pro SP2. with English OS is installed.

During run time i am assigning arabic text to my labels.
I have some questions.

1. What does OS actually require to display other languages like arabic.
2. If the arabic fonts are not installed, it is enough if i manually install
arabic fonts and WINDOWS\Fonts directory. and use ARABIC_CHARSET for the
labels character set property.

I am stuck in analyzing the situations.
Assume i have a pc Win XP Pro SP2. What should i check, what should provide
or write code to display arabic text properly without the user interfere.

Hope i explained my question.

Thanks.
SA
Peter
2008-05-16 21:26:55 UTC
Permalink
Post by bar
1. What does OS actually require to display other languages like arabic.
Because VCL is (still) MBCS instead of Unicode the proper page code for non
Unicode GUI apps must be set in the OS.
In this case Arabic or Farsi or ... ?
I'm not sure what installations of Windows install what but possibly you
need an Arabic Windows for this to work properly.

Personally, and my app also comes in Arabic, Farsi, Chinese, Japanese etc. I
don't set the Charset. This works fine of Arabic, Faris, .... Windows
installations that have the correct page code set.

I'm eagerly waiting for this year's C++ Builder release because then finally
VCL will be Unicode.
If you then assign text during run time in Unicode there will be no issues
anymore and your Arabic text will display properly on all Windows
installations, provided a font is selected that supports those characters
(here too I'm not sure what fonts contain what and if special action is
needed if the default font doesn't support the used unicode character)
bar
2008-05-17 21:12:15 UTC
Permalink
Post by Peter
Because VCL is (still) MBCS instead of Unicode the proper page code for
non Unicode GUI apps must be set in the OS.
In this case Arabic or Farsi or ... ?
I'm not sure what installations of Windows install what but possibly you
need an Arabic Windows for this to work properly.
Personally, and my app also comes in Arabic, Farsi, Chinese, Japanese etc.
I don't set the Charset. This works fine of Arabic, Faris, .... Windows
installations that have the correct page code set.
Hi peter, thanks for the reply.

In my the pc's mostly have Windows XP in English. Proper code page is
installed.

Can you pls point me, any Unicode Controls for TLabel and TPopupMenu.
What about SetThreadLocale().

Thanks
SA
Peter
2008-05-18 16:14:50 UTC
Permalink
Post by bar
Can you pls point me, any Unicode Controls for TLabel and TPopupMenu.
Look into the TNT controls !
http://www.tntware.com/delphicontrols/unicode/
hmmm ... it seems not free anymore.
Post by bar
What about SetThreadLocale().
I don't know.
bar
2008-05-18 21:34:27 UTC
Permalink
Hi Peter thanks for the answer.

Since i want to perform simple operation (only the display of arabic
characters on label and menu) .
I am not using the resource strings.
it will be nice, if somebody provide the API. how to do it manually and i
can wait for new release of unicode VCL controls.

Anticipating reply
Thanks
SA

bar
2008-05-16 21:15:23 UTC
Permalink
Hi all.

I am very new to language localization.

Can anybody provide me help to accomplish this task.

Nothing fancy. I have 2 menus and some labels i need to display in arabic.
Now i see "????". Why these ??? appears.

I am using BCB6.

Very greateful for the comments.
Thanks
SA
Loading...