Added UTF-8 codec to csv file. fix #14
This commit is contained in:
parent
d2b7cf40c8
commit
8fa723a162
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ bool CSV_Exporter::exportCalendar(calendarSchedule *calSched, CalendarDialog *ca
|
|||
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
|
||||
|
||||
for (calendarCourse *coursePtr: *(calSched->getCourses())) //main loop - running though all courses
|
||||
|
|
Loading…
Reference in a new issue