diff --git a/mythtv/programs/mythbackend/httpstatus.cpp b/mythtv/programs/mythbackend/httpstatus.cpp
index e027a87..80de8a6 100644
a
|
b
|
void HttpStatus::GetStatusXML( HTTPRequest *pRequest ) |
138 | 138 | { |
139 | 139 | QDomDocument doc( "Status" ); |
140 | 140 | |
| 141 | // UTF-8 is the default, but good practice to specify it anyway |
| 142 | QDomProcessingInstruction encoding = doc.createProcessingInstruction("xml", "version=\"1.0\" encoding=\"UTF-8\""); |
| 143 | doc.appendChild(encoding); |
| 144 | |
141 | 145 | FillStatusXML( &doc ); |
142 | 146 | |
143 | 147 | pRequest->m_eResponseType = ResponseTypeXML; |
144 | 148 | pRequest->m_mapRespHeaders[ "Cache-Control" ] = "no-cache=\"Ext\", max-age = 5000"; |
145 | 149 | |
146 | 150 | QTextStream stream( &pRequest->m_response ); |
| 151 | stream.setCodec("UTF-8"); // Otherwise locale default is used. |
147 | 152 | stream << doc.toString(); |
148 | 153 | } |
149 | 154 | |