National chars in windows, xBrowse ...

Post Reply
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

National chars in windows, xBrowse ...

Post by Rimantas »

Hi,

Using Fwh 11.11 , Harbour minGw 3.2

I wrote a year ago , that TVistaMenu isn't working with national chars . Then I found that using fonts with "Baltic" extend it solve this problem . But now the same solutions isn't working with Win 7 ... :( . Strange that with dialogs all that is working , the problem is with mdi childs windows . What I must to use for windows captions , xBrowse data and headers , that convert in understable nationals chars ? Some searching I found that exist hb_utf8to* functions . Headers , labels and menus labels are from mySql database , which use utf8 . Can you help in this situation ?

Regards !
Rimantas U.
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: National chars in windows, xBrowse ...

Post by Rimantas »

Rimantas wrote:Hi,

Using Fwh 11.11 , Harbour minGw 3.2

I wrote a year ago , that TVistaMenu isn't working with national chars . Then I found that using fonts with "Baltic" extend it solve this problem . But now the same solutions isn't working with Win 7 ... :( . Strange that with dialogs all that is working , the problem is with mdi childs windows . What I must to use for windows captions , xBrowse data and headers , that convert in understable nationals chars ? Some searching I found that exist hb_utf8to* functions . Headers , labels and menus labels are from mySql database , which use utf8 . Can you help in this situation ?
Found that : HB_TRANSLATE( cString, "UTF8", "CP1257" ) . It seems that this is working ... Maybe are other variants ?
Rimantas U.
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: National chars in windows, xBrowse ...

Post by Rimantas »

Rimantas wrote: Found that : HB_TRANSLATE( cString, "UTF8", "CP1257" ) . It seems that this is working ... Maybe are other variants ?
I make hasted ... 4 chars ( ė, į, ų, ū ) visible incorrects , as ? char . Tried hb_translate and hb_utf8tostr functions . Can you give me some help ? What is needful to set starting app. ? I'm doing that :

REQUEST HB_CODEPAGE_LTWIN
REQUEST HB_LANG_LT
REQUEST HB_GT_GUI

ANNOUNCE RDDSYS
REQUEST DBFCDX

function Main()
SET DATE FORMAT TO "YYYY.MM.DD"
SET DBFLOCKSCHEME TO 2
set( _SET_CODEPAGE, "LTWIN" )
set( _SET_LANGUAGE, "LT" )
...

Maybe also it's needful to convert labels with Fwh functions OemtoAnsi/AnsiToOem ?

Thanks in adavnce !
Rimantas U.
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: National chars in windows, xBrowse ...

Post by Rimantas »

Rimantas wrote:
Rimantas wrote: Found that : HB_TRANSLATE( cString, "UTF8", "CP1257" ) . It seems that this is working ... Maybe are other variants ?
I make hasted ... 4 chars ( ė, į, ų, ū ) visible incorrects , as ? char . Tried hb_translate and hb_utf8tostr functions . Can you give me some help ? What is needful to set starting app. ? I'm doing that :

REQUEST HB_CODEPAGE_LTWIN
REQUEST HB_LANG_LT
REQUEST HB_GT_GUI

ANNOUNCE RDDSYS
REQUEST DBFCDX

function Main()
SET DATE FORMAT TO "YYYY.MM.DD"
SET DBFLOCKSCHEME TO 2
set( _SET_CODEPAGE, "LTWIN" )
set( _SET_LANGUAGE, "LT" )
...

Maybe also it's needful to convert labels with Fwh functions OemtoAnsi/AnsiToOem ?

Thanks in adavnce !
Can any to help with nationals chars ? Problems occurs only with Win7 OS . With XP allreday all is working OK . I'm working with old Fwh 11.11 + Harbour 3.2 MinGw . Bad nationals chars are only in mdi childs windows and xBrowse headers .

Many thanks in advance ...
Rimantas U.
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: National chars in windows, xBrowse ...

Post by Rimantas »

What I must to do that to get help ? Maybe it's only mine problem , but ... with XP all is working , with Win 7 - no . So I'm asking again - how to resolve national chars problem with mdi childs and xbrowse headers in windows in Windows 7 OS ?
Rimantas U.
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: National chars in windows, xBrowse ...

Post by Rimantas »

Rimantas wrote:What I must to do that to get help ? Maybe it's only mine problem , but ... with XP all is working , with Win 7 - no . So I'm asking again - how to resolve national chars problem with mdi childs and xbrowse headers in windows in Windows 7 OS ?
NO any comments from Fwh masters ? Antonio Linares too can't to say any word ?
Rimantas U.
Post Reply