Page 1 of 1
UTF-8
Posted: Tue Dec 22, 2015 2:35 pm
by byte-one
Hello!
Is there a way to convert ansi to utf-8?
Re: UTF-8
Posted: Tue Dec 22, 2015 2:59 pm
by AHF
Did you try hb_translate ?
Re: UTF-8
Posted: Tue Dec 22, 2015 3:19 pm
by byte-one
Is there a Codepage UTF8?
I found the function hb_strToUTF8() and it seems to functioning! (xHarbour, in Harbour?)
Re: UTF-8
Posted: Wed Dec 23, 2015 6:48 pm
by nageswaragunupudi
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?
Re: UTF-8
Posted: Wed Dec 23, 2015 8:59 pm
by byte-one
I use this for translate european (german in this case) text to UTF8 to make QR-Labels. QR should be in UTF8.
Re: UTF-8
Posted: Thu Dec 24, 2015 2:41 am
by nageswaragunupudi
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.