Subj : Re: Swedish characters To : borland.public.cpp.borlandcpp From : maeder@glue.ch (Thomas Maeder [TeamB]) Date : Wed Oct 08 2003 06:20 pm "Taras Kentrschynskyj" writes: > string s1 = "åäö", s2; > cin >> s2; // input: åäö > cout << s1 << s2 << endl; > > output (gcc): åäöåäö > output (bcc): Õõ÷åäö So the string read from standard input is written correctly to standard output. It seems that reading and writing works correctly. What seems not to work correctly is the treatment of string literals in the program (such as s1). The next thing I'd look at are how these characters are encoded. I.e. I'd convert each char to int and write the resulting value to standard output. .