Im trying to get cout to understand swedish characters, anyone know howto?
If I prompt the user to write to cin.getline(), and then write it to the std.output it works fine.
Like this:
char str[30];
cin.getline(str, 30);
cout << str;
But if I assign a constant C-string to a variable, and try cout, it doesnt show the right characters.
Like this:
char str[30] = "something with swedish characters";
cout << str;
I have tried with wcout and wchar_t, but it doesnt help, any help is greatly apreciated.
TIA!