Sorry, I posted without noticing your answer, thanks for your answer Salem.Without using boost and imbue, wofstream and wifstream were not working right, as I explained in my previous post.Now it works without problems, though I wonder if it would be possible to use imbue without boost and in old C++.(I wasn't able to make 'imbue()' function work before using boost, in the past)