FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour tget for chinese characters
Posts: 14
Joined: Tue Aug 21, 2012 02:13 AM
tget for chinese characters
Posted: Thu Nov 23, 2017 04:33 AM

Hi Antonio,
How to amend the TGET.PRG so that it can work like TEDIT.PRG
for two characters support (Chinese, etc.) without set the FW_SETUNICODE(.T.).

Regards and thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: tget for chinese characters
Posted: Thu Nov 23, 2017 06:57 AM

We are going to review it

thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 14
Joined: Tue Aug 21, 2012 02:13 AM
Re: tget for chinese characters
Posted: Fri Nov 24, 2017 04:59 AM

Thanks Antonio very much looking forward to see.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: tget for chinese characters
Posted: Fri Nov 24, 2017 03:05 PM
it can work like TEDIT.PRG

Where is the TEDIT.PRG please ?
Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: tget for chinese characters
Posted: Fri Nov 24, 2017 03:41 PM

source\classes\edit.prg

EMG

:-)

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: tget for chinese characters
Posted: Fri Nov 24, 2017 03:58 PM
Enrico Maria Giordano wrote:source\classes\edit.prg

:-)

EMG

Can we see an example of using Unicode text in Edit control without setting FW_SetUnicode( .T. ) ?
Thanks in advance.
Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: tget for chinese characters
Posted: Fri Nov 24, 2017 04:20 PM

HI
I think TEdit.prg not work Unicode and 2 bytes Chinese.
Long time ago, FWH not support Unicode and 2 bytes Chinese. so I modify TGet.prg to support 2 bytes Chinese(not unicode and not support XP Themes)
When I run MiniGUI, I found TEdit replace TGet within MiniGUI. so I suggestion Antonio to make TEdit.prg , not I think not work and return use TGet.prg( modify support Chinese )
But I don't know new FWH TEdit support 2 bytes Chinese and Use or not FW_SetUnicode( .T. )

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: tget for chinese characters
Posted: Fri Nov 24, 2017 04:57 PM
TEdit control uses Windows native Edit control. It can only handle either ANSI or Unicode. There is nothing we can do about it.


so I modify TGet.prg to support 2 bytes Chinese(not unicode and not support XP Themes)

This is what is required.
Regards



G. N. Rao.

Hyderabad, India
Posts: 14
Joined: Tue Aug 21, 2012 02:13 AM
Re: tget for chinese characters
Posted: Mon Nov 27, 2017 04:50 AM

Exactly, Richard would you please amend the Tget.prg again ?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: tget for chinese characters
Posted: Mon Nov 27, 2017 05:23 AM

Mr alfredlam

Richard's help would be highly useful.

Meanwhile would you mind sharing with us how with Edit control you are able to enter Chinese characters? We may try to make TGet behave like Edit control. Are you setting any Chinese codepage like CP950 or BIG5 ?

Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: tget for chinese characters
Posted: Mon Nov 27, 2017 09:13 AM
alfredlam wrote:Exactly, Richard would you please amend the Tget.prg again ?

Mr alfredlam

I will send TGet.prg to Mr.Rao
This TGet.prg not support XP Themes.

If you want to use CP950 or BIG5 of Chinese, I think you will get Unicode Chinese word problem.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: tget for chinese characters
Posted: Mon Nov 27, 2017 09:33 AM
Mr Richard

Thanks

If you want to use CP950 or BIG5 of Chinese, I think you will get Unicode Chinese word problem.


Mr Alfredlam does not want to use Unicode.
Yes, Unicode application is not compatible with BIG5 or CP950.

Can you please clarify as to how can we test entering Chinese characters into your TGet class? We do not have Chinese keyboard. I believe the on-screen Chinese keyboard of Windows enters only utf8 characters.
Regards



G. N. Rao.

Hyderabad, India
Posts: 14
Joined: Tue Aug 21, 2012 02:13 AM
Re: tget for chinese characters
Posted: Mon Nov 27, 2017 01:09 PM

Seems has been discussed the same issue on

viewtopic.php?f=3t=22508hilit=chinese+get

&&

Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: tget for chinese characters
Posted: Tue Nov 28, 2017 05:03 PM
alfredlam wrote:Seems has been discussed the same issue on
viewtopic.php?f=3&t=22508&hilit=chinese+get

Mr alfredlam

Yes. I think you'll meet end user input Unicode word and appear "???". Because you use old TGet 2byes solution not XP Themes( CP950/BIG5 )
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 14
Joined: Tue Aug 21, 2012 02:13 AM
Re: tget for chinese characters
Posted: Wed Nov 29, 2017 01:04 AM

Dear Richard.
How to set XP Themes( CP950/BIG5 ) ?
Thanks and regards
alfred