Click to See Complete Forum and Search --> : How to convert between ANSI and UTF-8 strings?


hou_126
October 19th, 2004, 09:04 PM
Read a string from a file and wirte to a oracle's database,but display a incorrect string,help me !!Thanks

pengch
October 20th, 2004, 07:59 AM
Try MultiByteToWideChar and WideCharToMultiByte API.

ANSI -> UNICODE->UTF-8
UTF8->UNICODE->ANSI

gri
October 20th, 2004, 11:14 AM
Hi,
So how you convert from : ANSI to UNICODE and UTF-8 ?
No one of the function mentioned work with ANSI if I well understood!
Thanks

Marc G
October 20th, 2004, 03:19 PM
Yes they work.

You also might want to look into the macros called A2W (Ansi To Wide) etc