Исправление wota, 25.01.13 23:51 (текущая версия) :
wofstream of( "data2.txt" ); of.imbue( locale( "ru_RU.UTF-8" ) ); of << s << endl;
Исходная версия wota, 25.01.13 23:51:
wofstream of( "data2.txt" ); of.imbue( locale( "uk_UA.UTF-8" ) ); of << s << endl;