Added UTF-8 codec to csv file. fix #14

This commit is contained in:
Sagi Dayan 2014-09-18 15:24:05 +03:00
parent d2b7cf40c8
commit 8fa723a162

View file

@ -44,7 +44,9 @@ bool CSV_Exporter::exportCalendar(calendarSchedule *calSched, CalendarDialog *ca
return false; return false;
} }
QTextStream out(&file); QTextStream out(&file); //The output streem.
out.setCodec("UTF-8"); //Unicode 8
out << CSV_CALENDAR_HEADER << "\n"; // macro in header file out << CSV_CALENDAR_HEADER << "\n"; // macro in header file
for (calendarCourse *coursePtr: *(calSched->getCourses())) //main loop - running though all courses for (calendarCourse *coursePtr: *(calSched->getCourses())) //main loop - running though all courses