UTF-8

UTF-8

Postby byte-one » Tue Dec 22, 2015 2:35 pm

Hello!
Is there a way to convert ansi to utf-8?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: UTF-8

Postby AHF » Tue Dec 22, 2015 2:59 pm

Did you try hb_translate ?
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: UTF-8

Postby byte-one » Tue Dec 22, 2015 3: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: UTF-8

Postby nageswaragunupudi » Wed Dec 23, 2015 6: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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: UTF-8

Postby byte-one » Wed Dec 23, 2015 8: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: UTF-8

Postby nageswaragunupudi » Thu Dec 24, 2015 2: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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests