W
Wolfnoliir
Hi,
Here is an question that must come up all the time but I can't find a
solution.
I would like to get a word or a line from an utf-8 encoded file into a
string but I get '�'s ('?') instead.
The strange thing is, this works fine from standard input:
cin >> someString; //works fine
cout << someString;
but
someIfStream >> someString;
cout << someString;
prints out question marks instead of accentuated characters!
(I'm using Linux and g++ 4.3.3)
Does anyone have an idea why that is or a solution to the problem?
Here is an question that must come up all the time but I can't find a
solution.
I would like to get a word or a line from an utf-8 encoded file into a
string but I get '�'s ('?') instead.
The strange thing is, this works fine from standard input:
cin >> someString; //works fine
cout << someString;
but
someIfStream >> someString;
cout << someString;
prints out question marks instead of accentuated characters!
(I'm using Linux and g++ 4.3.3)
Does anyone have an idea why that is or a solution to the problem?