Invalid UTF-8 string

3 messages Options
Embed this post
Permalink
Stefan M. Brandl

Invalid UTF-8 string

Reply Threaded More More options
Print post
Permalink
Hello,
just upgrade from rrdtool 1.3.8 to 1.3.9
and I get

(process:30282): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

when I do a rrdtool graph ...
And have a ° (degree) sign in the GPRINT line.



Stefan

_______________________________________________
rrd-users mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
oetiker

Re: Invalid UTF-8 string

Reply Threaded More More options
Print post
Permalink
Hi Stefan,

Yesterday Stefan M. Brandl wrote:

> Hello,
> just upgrade from rrdtool 1.3.8 to 1.3.9
> and I get
>
> (process:30282): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
>
> when I do a rrdtool graph ...
> And have a ° (degree) sign in the GPRINT line.


this is the kind of error you would get if you were running wit a
locale setting suggesting utf8 encoding and then inputing data
encoded with latin1 for example.

if you are using rrdtool from language bindings, make sure you call
setlocale and are not just setting the environment variable inside
you code.

cheers
tobi

> Stefan
>
> _______________________________________________
> rrd-users mailing list
> [hidden email]
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [hidden email] ++41 62 775 9902 / sb: -9900
_______________________________________________
rrd-users mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Stefan M. Brandl

Re: Invalid UTF-8 string#

Reply Threaded More More options
Print post
Permalink
On Wed, Nov 04, 2009 at 05:21:08AM +0100, Tobias Oetiker wrote:

> Hi Stefan,
>
> Yesterday Stefan M. Brandl wrote:
>
> > Hello,
> > just upgrade from rrdtool 1.3.8 to 1.3.9
> > and I get
> >
> > (process:30282): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
> >
> > when I do a rrdtool graph ...
> > And have a ° (degree) sign in the GPRINT line.
>
>
> this is the kind of error you would get if you were running wit a
> locale setting suggesting utf8 encoding and then inputing data
> encoded with latin1 for example.
>

Ups, you are right.
Setting the "correct" locale did the job.


Thanks
 Stefan

_______________________________________________
rrd-users mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users