[rrd-users] strange character with a degree sign in a GPRINT line

Audio Phile da_audiophile at yahoo.com
Mon Sep 8 01:35:23 CEST 2008


I'm using a PERL cgi script that uses rrdtool 1.3.2 to make graphs. I can't
get the syntax correct to use a degree sign (alt+0176 like this °) and
also call a variable in my GPRINT line.

If I use single quotes, I can't call the variable. If I use double
quotes, there is an extra symbol (Â) before the ° which goes away if I
use double quotes without the variable.

A picture is worth 1000 words (I circled the error in pink):

http://img114.imageshack.us/img114/1227/image2ef9.gif

Here is the relevant line of code that produces that extra letter:

"GPRINT:rech_c:LAST: %5.2lf °F set in $rhty \\n",

Is this a bug or is it me not knowing enough PERL/rrdtool?



      



More information about the rrd-users mailing list