|
From: Alexander S.K. <al...@be...> - 2014-01-31 09:46:51
|
> I have been able to find the problem:
>
> I have a file I saved using ANSI codepage
>
> 3 TIME 11:16:11
> 0 @I0270@ INDI
> 1 NAME Véronique /Authier/
> 2 GIVN Véronique
> 2 SURN Authier
>
>
> I open it using OEM codepage with PSPad (and wine)
>
> 3 TIME 11:16:11
> 0 @I0270@ INDI
> 1 NAME VÚronique /Authier/
> 2 GIVN VÚronique
> 2 SURN Authier
>
> It seems that hwg_SetAppLocale( "CP850" ) is equivalent to ANSI, and
> that the get system waits for OEM (or STR ??)
> Am-I wrong ?
>
I think, you're right.
We have set the "CP850" - so, all strings are converted from "CP850"
to utf8 before be displayed, but the characters, which are input from
the keyboard, are, probably, in other codepage, so we need to know how
this codepage is called. In this case you need to set hwg_setAppLocale()
to this codepage, and hb_cdpSelect() to appropiate, but SetDataCP()
should be set to "FR850".
|