I'm trying to print non-ascii symbols on a file, using

fprintf(file_name, "%c", xxx), where xxx is the symbol number

I'm trying to print symbols 176, 177, 178 and 219 from http://en.wikipedia.org/wiki/Code_page_850.

When I use printf only, the result is perfect. When I use fprintf, however, I get a different output. Is there any different thing to be done?

I'm using Dev-cpp and I'm opening files with Window's Notepad, font Lucida Console.

Thanks in advance