Character libraries

I recently created a program that is supposed to write a random line from choosen one of five files. The program works but instead of some characters(these are the characters I'm having problems with æ, ø, å) it writes a bunch of others, can anyone help me fix this? Do I need to include some special library to be able to write them?
Here's the code(all the functions are the same they just write from diffrent files):

I cannot actually see where in amongst all that unformatted code you are attempting to print these characters. The problem is rather simpler that the ammount of code you have posted warrants - perhaps you could post just the code that is problematic, or a smaller example that reproduces the specific problem. Either way, do post in code tags to preserve formatting.

Anyhow, what you need to realise is that a Win32 console does not use Unicode like your GUI editor probably does, so cannot display all the characters in any particular Unicode set. Win32 consoles use an 8 bit character set where the characters above 127 vary depending on the regional settings of the machine the code is running on (specifically the code page). Moreover, a user may set the console to use either the default bit-mapped terminal font or any monospaced truetype font; while the true type font may be Unicode, the console will only display characters with codes below 256, and the characters from 128 to 255 may differ from the corresponding characters in the default terminal font.

In short attempting to display non-ASCII subset characters in a Win32 console is fraught with issues and best avoided. You will need to write a GUI app, or at least a graphical app that uses GDI text rendering and Unicode.

On a US installation of Windows (and possibly some others):

æ = character code 145 (0x91)
ø = not supported
å = 134 (0x86)

Example:

Code:

printf( "\x91 \x86" ) ;

Your mileage may vary. And it may or may not work on any other WIndows installation. For a table of US console extended characters see http://www.asciitable.com/.