Convert file to UTF16

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Convert file to UTF16

Post by Natter »

There is a file in ANSI. I need to convert it to UTF16. How can I do this ?
Marc Vanzegbroeck
Posts: 1163
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Convert file to UTF16

Post by Marc Vanzegbroeck »

Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Convert file to UTF16

Post by Natter »

Thanks for your reply

hb_translate( cText, cPageOrigin, "UTF16LE" )

cPageOrigin - this is the source file encoding ?
Marc Vanzegbroeck
Posts: 1163
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Convert file to UTF16

Post by Marc Vanzegbroeck »

cPageOrigin is the coding of the source file. I use "cp850"
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Post Reply