Page 1 of 1

Using other Western chars with an English app?

Posted: Tue Sep 07, 2010 7:20 pm
by Luis Krause
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!

Re: Using other Western chars with an English app?

Posted: Tue Sep 07, 2010 8:43 pm
by James Bott
Hi Luis,

We haven't see you here in sometime. Nice to have you back.

This is not something that I am familiar with, but if you search the forum for "unicode" you may find some info about your problem. Unfortunately, you won't like the info you find. FWH does not support Unicode yet.

You may also be interested in Wikipedia's explaination of Unicode.

James

Re: Using other Western chars with an English app?

Posted: Tue Sep 07, 2010 8:49 pm
by Luis Krause
James:

Oh, I've been around... just little time to visit the forums frequently!

I sort of suspected it was the lack of Unicode support in FWH, but I guess
I was also hoping there was a way to make it work,

Hopefully Antonio will announce Unicode support in FWH soon enough.

Regards,