Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

mfc unicode

$
0
0

Hi,

I am using VS2013, MBCS is defined.

I have a txt file, the encoding is UTF8. There is ascii and Cyrillic text in the file. When I use fgetws, the ascii text is read fine but the Cyrillic text comes in as rubbish - that is it does not read it properly. It I load the file into notepad and change the encoding to UNICODE and save it. There is no difference.

A bit of history about the txt file: The file was originaly an ascii file, some of the ascii text was replaced by cyrillic text and returned in UTF8. The editing was done on an apple computer.

Any help gratefully appreciated


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>