I did some Googling around, but couldn't find a clear answer (not using the correct terminology perhaps?)
Anyway, I have some text files in ANSI format (WCP-1252) whose characters I want to process in a C++ program, but the thing is I don't know how to store the 2-byte characters that correspond to decimal codes 128 through to 255. Just to be sure though, I tried the following code:
ifstream infile("textfile.txt");
char c;
infile>>c; //also tried infile.get(c);
cout<<c;
Unsurprisingly, the 1-byte char failed to store any symbol from the extended set after 0x7F (I think it just displayed the ASCII symbol corresponding to the value of the first byte and discarded the second or vice verse).