collection3: Output graph.cgi debug as UTF-8
authorChris Mayo <aklhfex@gmail.com>
Wed, 6 Feb 2019 19:51:49 +0000 (19:51 +0000)
committerChris Mayo <aklhfex@gmail.com>
Wed, 6 Feb 2019 19:51:49 +0000 (19:51 +0000)
Ensure text and symbols e.g. degrees Celsius are shown as intended.

contrib/collection3/bin/graph.cgi

index 2b3f2fe..ba189de 100755 (executable)
@@ -140,10 +140,10 @@ sub main
   if (param ('debug'))
   {
     print <<HTTP;
-Content-Type: text/plain
+Content-Type: text/plain; charset=utf-8
 
 HTTP
-    $ContentType = 'text/plain';
+    $ContentType = 'text/plain; charset=utf-8';
   }
 
   if ($GraphWidth)