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
reading a utf8 encoded text file using Cdao
Page 1 of 1|
|

New Topic/Question
This topic is locked




MultiQuote


|