Page 1 of 1

Convert file to UTF16

Posted: Thu Dec 20, 2018 7:29 pm
by Natter
There is a file in ANSI. I need to convert it to UTF16. How can I do this ?

Re: Convert file to UTF16

Posted: Fri Dec 21, 2018 7:07 pm
by Marc Vanzegbroeck

Re: Convert file to UTF16

Posted: Fri Dec 21, 2018 8:20 pm
by Natter
Thanks for your reply

hb_translate( cText, cPageOrigin, "UTF16LE" )

cPageOrigin - this is the source file encoding ?

Re: Convert file to UTF16

Posted: Sat Dec 22, 2018 9:56 am
by Marc Vanzegbroeck
cPageOrigin is the coding of the source file. I use "cp850"