Page 1 of 1

UTF-8 problem in HMG

Posted: Fri Mar 26, 2010 9:35 pm
by leslie_m
Hallo Friends!

Welcome to all from Hungary!
I am a beginner HMG (but old Clipper) programmer. :)
I am in a special project. I rewrited an old clipper based database handler with HMG.
I have a problem with it. I must use UTF-8 codepage, because the program will works in Vietnam.
There we use UTF-8 coding, with a special UTF-8 keyboard program.
But in HMG I can not handle this coding. The compiled program can not save the special characters by UTF-8 charactertable.
Somebody can help me, how can I set the language settings and codepage in HMG?

Thanks a lot
Leslie

Re: UTF-8 problem in HMG

Posted: Fri Mar 26, 2010 11:33 pm
by Vanguarda
Hi my friend,

HI from Brazil.

Nice have you here.

Well about "codepage", please see this link bellow:
http://www.oohg.org/manual/htm/hb_setcodepage.htm

In here, i try it for PT_BR:

Code: Select all

REQUEST HB_CODEPAGE_PT850
HB_SETCODEPAGE( “PT850″ ) 

I hope that help.

My best regards,

Re: UTF-8 problem in HMG

Posted: Tue Mar 30, 2010 3:10 pm
by leslie_m
Hi Paulo!

Thank you for your help.
But I tried this HB_SETCODEPAGE() function already.
My problem is: the language argument list does not include the UTF-8 codepage.
And I need it. (I use it in Vietnam)
How can i select the UTF-8?

Do you know something about this special codepage support in HMG?

Leslie

Re: UTF-8 problem in HMG

Posted: Tue Mar 30, 2010 3:33 pm
by Rathinagiri
IMHO, UTF-8 is not yet implemented in HMG.

Re: UTF-8 problem in HMG

Posted: Fri Apr 02, 2010 10:06 am
by leslie_m
Hello Rathinagiri!

Thanks for your reply.
Are You sure, no existing solution, for this UTF-8 problem?
I found on the > http://www.hmgextended.com < site this:
http://www.hmgextended.com/files/CONTRI ... onvert.prg
Doy you know that?
It has so much utf compatible function.
But I am not sure, it's useable for me, and how can I integrate to my program.

any idea?

thanx a lot
Leslie