Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
present code:
CStdioFile oFile( strFile, CFile::modeRead | CFile::shareDenyWrite );

problem:
currently we are reading data from ascii file, now onwards we have to read file(ascii/unicode).

note: file which we are reading is created from 3rd party and we don't know how that file is created means is it created in ascii/unicode.

please help how we can solve this problem in mfc(vc 6.0)
Posted

1 solution

I am not a user of MFC so I don't know whether MFC has some built in mechanism for this; a search on MSDN should tell you. However if you need to do it manually then this article[^] shows the way to recognise different text encodings.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900