0

I have a function that is writing to a .txt file.

ofstream fichier("C:\\users\\me\\Desktop\\test.txt", ios::app);

then :

fichier << "some text here";

The text i'm writing is a log file containing the history of my application changes.

As i'm french, i'm writing characters (latin ?) like "ê" or "ë". This works randomly...At first i get the correct format in notepad then when i append some others characters, it switches to another format so "ê" becomes "ê" and i don't understand why.

(In fact i can't even get "¨" to be compiled by code::blocks because it is a "multi characters constant")

What should i do ? Thanks by advance.

4

0 に答える 0