Using other Western chars with an English app?
Posted: Tue Sep 07, 2010 7:20 pm
Hi all.
Our app UI use English, but we have a few users that require either Greek or Baltic
characters to display correctly on screen. So far all my experiments haven't quite worked.
The idea is to be able to display standard English chars along with any of the
character set available depending on the font selected (i.e. the Script combobox from
the Windows API ChooseFont() dialog).
Let's just stick with Greek for the moment.
At startup I set
REQUEST HB_CODEPAGE_ELWIN
hb_SetCodePage( "ELWIN" )
and when creating fonts I make sure I pass 161 to TFont:nCharSet IVAR.
But that doesn't seem to make a difference, either using just the ELWIN charset
or passing 161 to nCharSet or using both.
I used Word to grab the lowercase greek alphabet (I don't speek Greek so apologies
if this is incomplete):
αβγδεζηθικλμνξοπρςστυφχψω
And then paste it into a GET in our app, but this is what I get:
aß?de??????µ???p??st?f???
As you can see, only a few characters display correctly; the rest are just replaced
by question marks (?).
Any idea if this is even possible with FiveWin + xHarbour?
Thanks!
Our app UI use English, but we have a few users that require either Greek or Baltic
characters to display correctly on screen. So far all my experiments haven't quite worked.
The idea is to be able to display standard English chars along with any of the
character set available depending on the font selected (i.e. the Script combobox from
the Windows API ChooseFont() dialog).
Let's just stick with Greek for the moment.
At startup I set
REQUEST HB_CODEPAGE_ELWIN
hb_SetCodePage( "ELWIN" )
and when creating fonts I make sure I pass 161 to TFont:nCharSet IVAR.
But that doesn't seem to make a difference, either using just the ELWIN charset
or passing 161 to nCharSet or using both.
I used Word to grab the lowercase greek alphabet (I don't speek Greek so apologies
if this is incomplete):
αβγδεζηθικλμνξοπρςστυφχψω
And then paste it into a GET in our app, but this is what I get:
aß?de??????µ???p??st?f???
As you can see, only a few characters display correctly; the rest are just replaced
by question marks (?).
Any idea if this is even possible with FiveWin + xHarbour?
Thanks!