HB_SETCODEPAGE( ) UTF-16
-
- Posts: 1163
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
HB_SETCODEPAGE( ) UTF-16
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.
How can I set the codepage to UTF-16?
For UTF8, I can use HB_SETCODEPAGE( "UTF8" ), but HB_SETCODEPAGE( "UTF16" ) doesn't work.
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
-
- Posts: 1163
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: HB_SETCODEPAGE( ) UTF-16
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.
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.
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
-
- Posts: 1163
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: HB_SETCODEPAGE( ) UTF-16
I found a solution by using a external conversion-program 'CONVERTCP'
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Re: HB_SETCODEPAGE( ) UTF-16
You are tested this?
Code: Select all | Expand
//request HB_CODEPAGE_UTF8
request HB_CODEPAGE_UTF16LE
// and function hb_translate( cText, cPageOrigin, "UTF16LE" )
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
-
- Posts: 1163
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: HB_SETCODEPAGE( ) UTF-16
Cristobal,
Thank you, that's working fine![Smile :)](./images/smilies/icon_smile.gif)
Thank you, that's working fine
![Smile :)](./images/smilies/icon_smile.gif)
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Re: HB_SETCODEPAGE( ) UTF-16
Marc Vanzegbroeck wrote:I found a solution by using a external conversion-program 'CONVERTCP'
Perfect Solution
Lubin Thank You
- richard-service
- Posts: 807
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Has thanked: 1 time
- Contact:
Re: HB_SETCODEPAGE( ) UTF-16
Marc Vanzegbroeck wrote:I found a solution by using a external conversion-program 'CONVERTCP'
Hi Marc,
How to find this external conversion-program 'CONVERTCP'
Best Regards,
Richard
Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
Richard
Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
-
- Posts: 1163
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: HB_SETCODEPAGE( ) UTF-16
Richard,
Here is the link https://sourceforge.net/projects/convertcp/
Here is the link https://sourceforge.net/projects/convertcp/
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
- richard-service
- Posts: 807
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Has thanked: 1 time
- Contact:
Re: HB_SETCODEPAGE( ) UTF-16
Marc Vanzegbroeck wrote:Richard,
Here is the link https://sourceforge.net/projects/convertcp/
Marc,
Thanks a lot. I got it.
Best Regards,
Richard
Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
Richard
Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit