// Build the path.
- string calendarListFilename = string(GetUserDir().mb_str());
+ string calendarListFilename = string(GetUserDir().ToUTF8());
calendarListFilename += "accounts/";
- calendarListFilename += string(preferences->accounts.GetAccountDirectory(accountSeek).mb_str());
+ calendarListFilename += string(preferences->accounts.GetAccountDirectory(accountSeek).ToUTF8());
calendarListFilename += ".";
- calendarListFilename += string(preferences->accounts.GetAccountType(accountSeek).mb_str());
+ calendarListFilename += string(preferences->accounts.GetAccountType(accountSeek).ToUTF8());
// Get the list of calendars.
// Set the calendar ID.
- CDSGetCalendarInfo calendarInfo = calendarData.GetCalendar(string(preferences->accounts.GetAccountName(accountSeek).mb_str()), calendarList.calendarShortName[calendarSeek]);
+ CDSGetCalendarInfo calendarInfo = calendarData.GetCalendar(string(preferences->accounts.GetAccountName(accountSeek).ToUTF8()), calendarList.calendarShortName[calendarSeek]);
calendarList.calendarStorageID[calendarSeek] = calendarInfo.calendarID;
// Find the entries and load each entry.
accountDirectoryPath += "accounts/";
accountDirectoryPath += string(preferences->accounts.GetAccountDirectory(calendarInfo->accountPreferencesID).ToUTF8());
accountDirectoryPath += ".";
- accountDirectoryPath += string(preferences->accounts.GetAccountType(calendarInfo->accountPreferencesID).mb_str());
+ accountDirectoryPath += string(preferences->accounts.GetAccountType(calendarInfo->accountPreferencesID).ToUTF8());
accountDirectoryPath += "/";
// Generate a UUID for the new calendar.