|
From: Alexander S.K. <al...@be...> - 2014-02-03 09:52:22
|
Alain Aupeix writes: >> hwg_SetAppLocale( "CP1251" ) >> hb_cdpSelect( "FRWIN" ) >> SetDataCP( "FR850") > No more good (FRWIN is not a know CP) FRWIN is a known cp - see the harbour/src/codepage/cpfrwin.c Probably, you forgot to request it: REQUEST HB_CODEPAGE_FRWIN REQUEST HB_CODEPAGE_FR850 > > After searching in harbour source, I found that ISO-8859-1 is bad and > ISO8859-1 is good instead > > Setting applocale to ISO8859-1 does the trick for gets, but now, > impossible to have dbf fields or menu strings correctly displayed. (see > hardcopy). The hardcopy is for : > > hwg_SetAppLocale( "ISO8859-1" ) > hb_cdpSelect( "CP850" ) > SetDataCP( "FR850") > > It seems that SetAppLocale is the master, and all the values we can set > for cdp or datacp are not executed. > Iy you use the ISO8859-1, you, probably, need to use hb_cdpSelect( "FRISO" ), because this Harbour's codepage corresponds it. Of course, don't forget to include REQUEST HB_CODEPAGE_FRISO REQUEST HB_CODEPAGE_FR850 in this case. Regards, Alexander. |