Invalid UTF-8 string

View: New views
3 Messages — Rating Filter:   Alert me  

Invalid UTF-8 string

by Stefan M. Brandl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: Invalid UTF-8 string

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
> rrd-users@...
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>

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

Re: Invalid UTF-8 string#

by Stefan M. Brandl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users