0 Replies - 1522 Views - Last Post: 15 October 2008 - 07:22 AM Rate Topic: -----

#1 bovilla  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 15-October 08

reading a utf8 encoded text file using Cdao

Post icon  Posted 15 October 2008 - 07:22 AM

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

Is This A Good Question/Topic? 0
  • +

Page 1 of 1