FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour National chars in windows, xBrowse ...
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
National chars in windows, xBrowse ...
Posted: Thu Mar 14, 2013 11:39 AM

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.
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: National chars in windows, xBrowse ...
Posted: Thu Mar 14, 2013 01:09 PM
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.
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: National chars in windows, xBrowse ...
Posted: Fri Mar 15, 2013 05:45 AM
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.
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: National chars in windows, xBrowse ...
Posted: Mon Mar 18, 2013 07:49 PM
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.
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: National chars in windows, xBrowse ...
Posted: Tue Mar 19, 2013 02:14 PM

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.
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: National chars in windows, xBrowse ...
Posted: Wed Mar 20, 2013 06:12 AM
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.

Continue the discussion