Code

collection3/etc/collection.conf: Reencoded in UTF-8.
authorSebastian Harl <sh@tokkee.org>
Sun, 26 Jul 2009 13:01:53 +0000 (15:01 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 26 Jul 2009 13:05:21 +0000 (15:05 +0200)
Depending on the locale settings, RRDtool might fail to handle "special
characters" correctly. Using UTF-8 is a way to work around that issue.

Thanks to Daniel Danner for reporting and testing this.

contrib/collection3/bin/graph.cgi
contrib/collection3/etc/collection.conf

index c096dc9444215f1707d18540b0f59b8b725bdc91..8a5bf85a17de71a3b978f55bab662d3cccc2197a 100755 (executable)
@@ -3,6 +3,7 @@
 use strict;
 use warnings;
 use lib ('../lib');
+use utf8;
 
 use FindBin ('$RealBin');
 use Carp (qw(confess cluck));
index 9497d8e383e0dd2d5f50d90fcd041a0fe90052f3..c5a0e9f198c3f95ade401c9f52e4f8f1ef639015 100644 (file)
@@ -498,8 +498,8 @@ GraphWidth 400
   DataSources value
   DSName value Temp
   RRDTitle "Temperature ({instance})"
-  RRDVerticalLabel "°Celsius"
-  RRDFormat "%4.1lf°C"
+  RRDVerticalLabel "°Celsius"
+  RRDFormat "%4.1lf°C"
 </Type>
 <Type users>
   DataSources users
@@ -525,4 +525,4 @@ GraphWidth 400
   RRDVerticalLabel "W"
   RRDFormat "%4.1lfW"
 </Type>
-# vim: set sw=2 sts=2 et syntax=apache fileencoding=latin-1 :
+# vim: set sw=2 sts=2 et syntax=apache fileencoding=utf-8 :