UTF-8 problem in HMG

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
leslie_m
Posts: 9
Joined: Thu Mar 25, 2010 4:19 pm
Location: Hungary

UTF-8 problem in HMG

Post 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
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: UTF-8 problem in HMG

Post 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,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
leslie_m
Posts: 9
Joined: Thu Mar 25, 2010 4:19 pm
Location: Hungary

Re: UTF-8 problem in HMG

Post 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
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: UTF-8 problem in HMG

Post by Rathinagiri »

IMHO, UTF-8 is not yet implemented in HMG.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
leslie_m
Posts: 9
Joined: Thu Mar 25, 2010 4:19 pm
Location: Hungary

Re: UTF-8 problem in HMG

Post 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
Post Reply