Page 1 of 1

National chars in windows, xBrowse ...

Posted: Thu Mar 14, 2013 11:39 am
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 !

Re: National chars in windows, xBrowse ...

Posted: Thu Mar 14, 2013 1:09 pm
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 ?

Re: National chars in windows, xBrowse ...

Posted: Fri Mar 15, 2013 5:45 am
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 !

Re: National chars in windows, xBrowse ...

Posted: Mon Mar 18, 2013 7:49 pm
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 ...

Re: National chars in windows, xBrowse ...

Posted: Tue Mar 19, 2013 2:14 pm
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 ?

Re: National chars in windows, xBrowse ...

Posted: Wed Mar 20, 2013 6:12 am
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 ?