FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Double quote display problem in database text field
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM

Double quote display problem in database text field

Posted: Thu Jul 24, 2025 08:58 AM

I have a database managed with the tCbrowse class

with this settings: FW_SetUnicode( .t. ); HB_SETCODEPAGE( "UTF8" )

In the text fields i see 2 vertical bars instead of 2 quotes: โ€œ โ€, while the single quote โ€™ displays it well.

Chr(226) + Chr(128) + Chr(156) E2 80 9C โ€œ

Chr(226) + Chr(128) + Chr(157) E2 80 9D โ€

Chr(226) + Chr(128) + Chr(153) E2 80 99 โ€™

With the Browse() and xBrowse() fivewin functions everything is displayed correctly.

What could be the problem?

thanks, Marzio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Double quote display problem in database text field

Posted: Thu Jul 24, 2025 09:19 AM

Dear Marzio,

It seems as Class TCBrowse is not properly managing UTF8.

Is there any specific reason why you have to use TCBrowse instead of TXBrowse ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM

Re: Double quote display problem in database text field

Posted: Thu Jul 24, 2025 09:38 AM

I have some old programs that use the tcBrowse class.

No problem, Antonio.

I can use a function that automatically replace the UTF8 double quotes with ANSI ones.

I will consider replacing the class with txBrowse.

Thanks, Marzio

Continue the discussion