Skip to content

Commit

Permalink
[dvbviewer] Use utf-8 encoding to get and set the timers
Browse files Browse the repository at this point in the history
  • Loading branch information
A600 committed Dec 15, 2012
1 parent f0ccdcb commit e661174
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/pvr.dvbviewer/src/DvbData.cpp
Expand Up @@ -609,7 +609,7 @@ PVR_ERROR Dvb::GetTimers(ADDON_HANDLE handle)
std::vector<DvbTimer> Dvb::LoadTimers()
{
CStdString url;
url.Format("%s%s", m_strURL.c_str(), "api/timerlist.html");
url.Format("%s%s", m_strURL.c_str(), "api/timerlist.html?utf8");

CStdString strXML;
strXML = GetHttpXML(url);
Expand Down Expand Up @@ -740,13 +740,13 @@ void Dvb::GenerateTimer(const PVR_TIMER &timer, bool bNewTimer)
int iChannelId = m_channels.at(timer.iClientChannelUid-1).iChannelId;
CStdString strTmp;
if (bNewTimer)
strTmp.Format("api/timeradd.html?ch=%d&dor=%d&enable=1&start=%d&stop=%d&prio=%d&days=%s&title=%s", iChannelId, dor, start, stop, timer.iPriority, strWeek, URLEncodeInline(timer.strTitle));
strTmp.Format("api/timeradd.html?ch=%d&dor=%d&enable=1&start=%d&stop=%d&prio=%d&days=%s&title=%s&encoding=255", iChannelId, dor, start, stop, timer.iPriority, strWeek, URLEncodeInline(timer.strTitle));
else
{
int enabled = 1;
if (timer.state == PVR_TIMER_STATE_CANCELLED)
enabled = 0;
strTmp.Format("api/timeredit.html?id=%d&ch=%d&dor=%d&enable=%d&start=%d&stop=%d&prio=%d&days=%s&title=%s", GetTimerID(timer), iChannelId, dor, enabled, start, stop, timer.iPriority, strWeek, URLEncodeInline(timer.strTitle));
strTmp.Format("api/timeredit.html?id=%d&ch=%d&dor=%d&enable=%d&start=%d&stop=%d&prio=%d&days=%s&title=%s&encoding=255", GetTimerID(timer), iChannelId, dor, enabled, start, stop, timer.iPriority, strWeek, URLEncodeInline(timer.strTitle));
}

SendSimpleCommand(strTmp);
Expand Down Expand Up @@ -789,7 +789,7 @@ PVR_ERROR Dvb::GetRecordings(ADDON_HANDLE handle)
m_recordings.clear();

CStdString url;
url.Format("%s%s", m_strURL.c_str(), "api/recordings.html?utf8=");
url.Format("%s%s", m_strURL.c_str(), "api/recordings.html?utf8");

CStdString strXML;
strXML = GetHttpXML(url);
Expand Down

0 comments on commit e661174

Please sign in to comment.