Page 1 of 1
HB_SETCODEPAGE( ) UTF-16
Posted: Sat Dec 01, 2018 10:19 pm
by Marc Vanzegbroeck
Hi,
How can I set the codepage to UTF-16?
For UTF8, I can use HB_SETCODEPAGE( "UTF8" ), but HB_SETCODEPAGE( "UTF16" ) doesn't work.
Re: HB_SETCODEPAGE( ) UTF-16
Posted: Sun Dec 02, 2018 12:15 pm
by Marc Vanzegbroeck
Hi,
The problem is that I want to read an XML-file that is UTF-16 encoded in a dbf or memoread, but that does't work, it only works with an UTF-8 file.
Re: HB_SETCODEPAGE( ) UTF-16
Posted: Sun Dec 02, 2018 1:08 pm
by Marc Vanzegbroeck
I found a solution by using a external conversion-program 'CONVERTCP'
Re: HB_SETCODEPAGE( ) UTF-16
Posted: Sun Dec 02, 2018 9:38 pm
by cnavarro
You are tested this?
Code: Select all | Expand
//request HB_CODEPAGE_UTF8
request HB_CODEPAGE_UTF16LE
// and function hb_translate( cText, cPageOrigin, "UTF16LE" )
Re: HB_SETCODEPAGE( ) UTF-16
Posted: Mon Dec 03, 2018 5:46 pm
by Marc Vanzegbroeck
Cristobal,
Thank you, that's working fine

Re: HB_SETCODEPAGE( ) UTF-16
Posted: Mon Jul 15, 2019 12:43 am
by lubin
Marc Vanzegbroeck wrote:I found a solution by using a external conversion-program 'CONVERTCP'
Perfect Solution
Lubin Thank You
Re: HB_SETCODEPAGE( ) UTF-16
Posted: Mon Jul 15, 2019 5:46 am
by richard-service
Marc Vanzegbroeck wrote:I found a solution by using a external conversion-program 'CONVERTCP'
Hi Marc,
How to find this external conversion-program 'CONVERTCP'
Re: HB_SETCODEPAGE( ) UTF-16
Posted: Mon Jul 15, 2019 12:14 pm
by Marc Vanzegbroeck
Re: HB_SETCODEPAGE( ) UTF-16
Posted: Mon Jul 15, 2019 6:06 pm
by richard-service
Marc,
Thanks a lot. I got it.