FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CP 852
Posts: 3
Joined: Sat Jul 28, 2012 10:32 PM
CP 852
Posted: Mon Aug 09, 2021 03:39 PM

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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: CP 852
Posted: Mon Aug 09, 2021 06:03 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3
Joined: Sat Jul 28, 2012 10:32 PM
Re: CP 852
Posted: Wed Aug 11, 2021 12:18 AM
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 (fw): Select all Collapse
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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: CP 852
Posted: Thu Aug 12, 2021 01:52 PM
Code (fw): Select all Collapse
#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
Regards



G. N. Rao.

Hyderabad, India
Posts: 3
Joined: Sat Jul 28, 2012 10:32 PM
Re: CP 852
Posted: Thu Aug 12, 2021 03:46 PM

Thank you, although I wrote too simple example :))

How do I create GET of such variables?

Regards, NB

Continue the discussion