FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Using other Western chars with an English app?
Posts: 59
Joined: Tue Oct 11, 2005 01:39 AM
Using other Western chars with an English app?
Posted: Tue Sep 07, 2010 07: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!

"May the Source be with GNU"
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Using other Western chars with an English app?
Posted: Tue Sep 07, 2010 08:43 PM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 59
Joined: Tue Oct 11, 2005 01:39 AM
Re: Using other Western chars with an English app?
Posted: Tue Sep 07, 2010 08:49 PM

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,

"May the Source be with GNU"

Continue the discussion