diff --git a/src/jceData/CSV/csv_exporter.cpp b/src/jceData/CSV/csv_exporter.cpp index 2b2bb89..5f2963d 100644 --- a/src/jceData/CSV/csv_exporter.cpp +++ b/src/jceData/CSV/csv_exporter.cpp @@ -50,7 +50,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 @@ -66,7 +68,7 @@ bool CSV_Exporter::exportCalendar(calendarSchedule *calSched, CalendarDialog *ca QString name = coursePtr->getName(); QString room = coursePtr->getRoom(); - QDate currentDate = cal->getStartDate(); // currentDate will iterate thou the semester + QDate currentDate = cal->getStartDate(); // currentDate will iterate throuh the semester currentDate = currentDate.addDays(day-1); //selecting the REAL starting day of that course