FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour UTF-8
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
UTF-8
Posted: Tue Dec 22, 2015 02:35 PM

Hello!
Is there a way to convert ansi to utf-8?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Re: UTF-8
Posted: Tue Dec 22, 2015 02:59 PM

Did you try hb_translate ?

Regards

Antonio H Ferreira
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: UTF-8
Posted: Tue Dec 22, 2015 03:19 PM

Is there a Codepage UTF8?

I found the function hb_strToUTF8() and it seems to functioning! (xHarbour, in Harbour?)

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: UTF-8
Posted: Wed Dec 23, 2015 06:48 PM

HB_CDPSELECT( "UTF8" )

HB_StrToUTF8() works. But may I know why do you want to translate? Personally, I do not see any advantage of the conversion.

Plain English is just the same whether in ANSI or UTF8. Identical.
Some European languages using accented characters may differ when converted. But may I know for what use you want to do the conversion?

Regards



G. N. Rao.

Hyderabad, India
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: UTF-8
Posted: Wed Dec 23, 2015 08:59 PM

I use this for translate european (german in this case) text to UTF8 to make QR-Labels. QR should be in UTF8.

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: UTF-8
Posted: Thu Dec 24, 2015 02:41 AM
byte-one wrote:I use this for translate european (german in this case) text to UTF8 to make QR-Labels. QR should be in UTF8.

Thanks for the information.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion