"karolina" <ra********@hot mail.com> wrote in message
news:c8******** *************** **@posting.goog le.com...
Hi
I am playing around with visual studio 7.0.
Why does the code below do like it does?
Where do I set the character set to use in cout,
properties->configuratio n properties->General->character does not do
the trick.
#include <iostream>
using namespace std;
int main()
{
cout << "åäö";
}
output:
σΣ÷
expected output:
åäö
[OT]
In windows open up a dos prompt window and type :
mode con
You should get information which tells you the DOS code page. (mine's is
850)
In the file menu within VC++ find the Advanced save options.
Save your file as ( in my case). Western European DOS - codepage 850 .
Your codepage should be listed there too if it is different from mine.
This should give you the expected output.
Additionally oven up character map in windows and select the check box for
advanced view , change the character set to the same as your DOS is using
and you will see what characters are compatable..
HTH