From: Andrew Ruthven <andrew@etc.gen.nz>
Date: Sat, 7 Jul 2012 10:04:08 +0000 (+1200)
Subject: Since we encode the string, we should also decode it.
X-Git-Tag: debian-sid-0.10.2-1~2
X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=096f0b33713dc3d3743f9b6ead9e137b002929cf;p=mythtv-status.git

Since we encode the string, we should also decode it.
---

diff --git a/bin/mythtv-status b/bin/mythtv-status
index d3e36c8..d5f1d23 100755
--- a/bin/mythtv-status
+++ b/bin/mythtv-status
@@ -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