Everything has to do with
encoding, which is to say, the "character set" in use.
I presume you are on Windows.
(Life is easier on *nixen; stick to UTF-8.)
First, your Windows Console must be configured to use a Unicode font. Unfortunately, there isn't any panacea answer, but for what you want "Lucida Console" should suffice.
Next, your console must be configured for the appropriate "code page". The default in English-speaking countries is typically either 437 (OEM US) or 1252 (ANSI Latin 1--Western European). UTF-8 is 65001. A list of code pages can be found on MS's site:
http://www.google.com/search?btnI=1&q=msdn+Code+Page+Identifiers
You can change it with the
chcp shell command (or by using the
SetConsoleOutputCP() function):
SetConsoleOutputCP( 65001 );
This is not guaranteed to work, however.
Once you set the output code page, you must write using that character set. This may or may not match the character set in your input file, so you must be careful to attend to that.
Good luck!