Page 1 of 1
CP 852
Posted: Mon Aug 09, 2021 3:39 pm
by nbatocanin
Hi to all

I want to use CP 852 in my FW/Harbour program. I use:
HB_CdpSelect ("HR852")
but not all characters are displayed correctly.
Regards, NB
Re: CP 852
Posted: Mon Aug 09, 2021 6:03 pm
by Antonio Linares
Re: CP 852
Posted: Wed Aug 11, 2021 12:18 am
by nbatocanin
Thanks Antonio, I know this text, but it doesn't help me. I will try to explain the problem. In plain Harbour, this program use CP 852 codepage:
Code: Select all | Expand
REQUEST HB_CODEPAGE_HR852
function Main()
local cName := Chr(143) + Chr(134) + Chr(172) + Chr(159) + ;
Chr(166) + Chr(167) + Chr(230) + Chr(231) + Chr(209) + Chr(208)
HB_CdpSelect ("HR852")
? cName
return nil
This program writes:
ĆćČ莞ŠšĐđ as I expected. But, this is not working in FiveWin version. Can anyone help me to make a similar FiveWin program that uses CP 852?
I apologize if I asked a stupid question, searched the manual and the forum and did not find a solution to this problem.
Regards, Nenad
Re: CP 852
Posted: Thu Aug 12, 2021 1:52 pm
by nageswaragunupudi
Code: Select all | Expand
#include "fivewin.ch"
REQUEST HB_CODEPAGE_HR852
function Main()
local cName := Chr(143) + Chr(134) + Chr(172) + Chr(159) + ;
Chr(166) + Chr(167) + Chr(230) + Chr(231) + Chr(209) + Chr(208)
HB_CdpSelect ("HR852")
? hb_strtoutf8( cName )
return nil
Re: CP 852
Posted: Thu Aug 12, 2021 3:46 pm
by nbatocanin
Thank you, although I wrote too simple example

)
How do I create GET of such variables?
Regards, NB