Convert file to UTF16

Convert file to UTF16

Postby Natter » Thu Dec 20, 2018 7:29 pm

There is a file in ANSI. I need to convert it to UTF16. How can I do this ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Convert file to UTF16

Postby Marc Vanzegbroeck » Fri Dec 21, 2018 7:07 pm

Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Convert file to UTF16

Postby Natter » Fri Dec 21, 2018 8:20 pm

Thanks for your reply

hb_translate( cText, cPageOrigin, "UTF16LE" )

cPageOrigin - this is the source file encoding ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Convert file to UTF16

Postby Marc Vanzegbroeck » Sat Dec 22, 2018 9:56 am

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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 73 guests