|
Hi,
I have a requirement of reading a text file, which is utf8 encoded and contains some non ascii characters. My case i have chinese characters.
i am using CDaoRecordSet->GetFieldValue() to read the text file. This function reads the file and returns me a COleVariant. My problem is as the text file is UTF8 encoded and the DAO class returns me a Bstr, the data read is not proper. when i convert the data back to UTF8, the data is getting garbled.
Is there any better way i could read a UTF8 encoded text file, using DAO and still not loose any data.
OR is this a limitation with CDaoRecordSet class.
Any help on this would be appreciated.
Thanks bovilla
|