]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
collection3: Output graph.cgi debug as UTF-8 3058/head
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 2b3f2fe18670509342ba019c78a46b2c69b71728..ba189dead65e069612902c437fe7308b07477377 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)