]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Since we encode the string, we should also decode it.
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 7 Jul 2012 10:04:08 +0000 (22:04 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 7 Jul 2012 10:04:08 +0000 (22:04 +1200)
bin/mythtv-status

index d3e36c8d379e2993c53adcd18a1cb66289650d73..d5f1d2317f291150c2a5003059d1f4e9e4f29af4 100755 (executable)
@@ -1087,6 +1087,9 @@ sub xml_fetch {
     }
     $| = 0;
 
+    if (defined $content_type && $content_type =~ /utf(-)?8/i) {
+      $status = decode('UTF-8', $status);
+    }
     return ($content_type, $status);
   } else {
     # child