[rrd-users] Putting a degree sign in an SVG?

Tobias Oetiker tobi at oetiker.ch
Sun Oct 28 00:18:43 CEST 2007


Hi Anssi,

you may want to try rrdtool 1.3beta ...

it uses cairo to generate the svg ... this should fix this problem
I guess


cheers
tobi

Yesterday Anssi Saari wrote:

>
> I've been playing with generating SVGs with rrdgraph recently, but I
> can't seem to be able to include a degree sign in an SVG graph. I'd like
> to have vertical label like -v "Temperature (°C)". So far I've tried a
> literal ISO-8859-1 and UTF-8 in the script, but that seems to generate
> bad XML, or at least Firefox doesn't like it. That works for PNGs though.
>
> <text font-size="14">Enc-Erature
> (&#-1374389534;&#1080578375;&#17;&#1270128984;&#1270128984;P!&#1953724787;&#1952410981;&#7368037;</text>
>
> It's also interesting that Temperature becomes Enc-Erature...
>
> My other idea was using the XML notatation i.e. &#x00b0; but
> unfortunately that's replaced with &amp;#x00b0; so I end up with the
> literal string &#x00b0; in the graph instead of the degree sign...
>
> So, any ideas? Using RRDtool 1.2.15 in Debian Etch.
>
> Anssi
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902


More information about the rrd-users mailing list