// CalendarList.cpp - Account calendar list.
//
-// (c) 2016 Xestia Software Development.
+// (c) 2016-2017 Xestia Software Development.
//
// This file is part of Xestia Calendar.
//
wxString calendarListFilenameFull;
- calendarListFilenameFull.Append(calendarListFilename);
+ calendarListFilenameFull.Append(wxString(calendarListFilename.c_str(), wxConvUTF8));
calendarListFilenameFull.Append(wxT("/calendarlist.db"));
wxFileConfig *calendarListFile = new wxFileConfig("", "", calendarListFilenameFull);
calendarListFile->SetPath(accountName);
- calendarShortName.push_back(string(accountName.mb_str()));
+ calendarShortName.push_back(string(accountName.ToUTF8()));
calendarListFile->Read(wxT("name"), &valueData);
- calendarName.push_back(string(valueData.mb_str()));
+ calendarName.push_back(string(valueData.ToUTF8()));
calendarListFile->Read(wxT("description"), &valueData);
- calendarDescription.push_back(string(valueData.mb_str()));
+ calendarDescription.push_back(string(valueData.ToUTF8()));
calendarListFile->Read(wxT("colour"), &valueData);
colourData = string(valueData.mb_str());