mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-05 16:20:14 +01:00
2021-11-08 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the rdxport.cgi service that caused XML output to be encoded with the incorrect character set. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -72,13 +72,13 @@ void Xport::ListServices()
|
||||
//
|
||||
// Process Request
|
||||
//
|
||||
printf("Content-type: application/xml\n");
|
||||
printf("Content-type: application/xml; charset=utf-8\n");
|
||||
printf("Status: 200\n\n");
|
||||
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
|
||||
printf("<serviceList>\n");
|
||||
while(q->next()) {
|
||||
svc=new RDSvc(q->value(0).toString(),rda->station(),rda->config());
|
||||
printf("%s",(const char *)svc->xml().toUtf8());
|
||||
printf("%s",svc->xml().toUtf8().constData());
|
||||
delete svc;
|
||||
}
|
||||
printf("</serviceList>\n");
|
||||
|
||||
Reference in New Issue
Block a user