Edit field problem with non-latin charsets

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Edit field problem with non-latin charsets

Post by ^rooker »

[PROBLEM]
(Windows)
We tried to use an english application to input arabic data into a database.

The data was stored correctly, but the editfields in the application itself didn't display arabic, but useless latin characters.


[SOLUTION]
In e.g. Delphi, a TEdit field has the property "Font", and there you can set the CHARSET for this field. By default that's (guess...) - "DEFAULT_CHARSET". In Delphi, you get a hint about other charsets from a dropdown box in the Object manager (e.g.: "ARABIC_CHARSET")

The problem was, that an english windows has some LATIN_CHARSET or whatever as default, whereas that should be arabic to display correctly.

In WinXP there's some option to set the default charset for non-unicode applications. Switch that to the language you want (e.g. Arabic) and the application should be able to display the right charset.
Post Reply