i am creating a program to read some files.
while reading 1 of the files i encountered some umlaut characters in the file.
how should i read those characters
& store them in string?
currently i am using string::getline() which is unable to read these characters & the position of reading pointer is not incrementing.
the character is in a line preceded by some spaces.
so i am using ws to remove the spaces.
i used peek to understand the problem; while hovering over the peek o/p char VS2010 showed y with 2 dots on it. so i guess it is umlaut character.
i am creating a program to read some files. while reading 1 of the
Share
If that is what you need – This code reads from file (UTF-8) text in German, prints it on console and saves in output file –