Thank you for the answer, Vladimir, but it didn't work. The code page of my console was 949 which supports Korean characters. I tested with french and e with ` (I don't know its name)was not printed properly. Both wstring dstring resulted the same problem.