[smokeping-users] Re: SmokePing 2.0rc5, RRDtool 1.2.11 and UTF-8

Erich Titl erich.titl at think.ch
Mon Aug 15 23:25:23 MEST 2005


Hoi Tobias

Tobias Oetiker wrote:
> Hoi Erich,
> 
> your file below is still not utf-8
> 
> utf8 would be this:
> 
>        0  41 62 c3 a4 72 20 41 62  c3 a4 72 20 41 62 c3 a4  Ab..r Ab..r Ab..
>       10  72 20 77 61 73 20 69 73  63 68 20 64 61 73 20 66  r was isch das f
>       20  c3 bc 72 20 65 73 20 47  73 63 68 6c 61 62 c3 a4  ..r es Gschlab..
>       30  72 2e 0a                                          r..
> 

Mhhh.. horrible

If I interpret this correctly, above the single a-Umlaut 'ä' is 
represented by c3 a4 which is not a single 8 bit character. IIRC this is 
what I sent originally....

           1  \n  \n   +   +   +       B   a   e   t   t   w   i   l  \n
0006100 6d0a 6e65 2075 203d c342 74a4 7774 6c69
          \n   m   e   n   u       =       B 303 244   t   t   w   i   l
0006120 740a 7469 656c 3d20 4220 a4c3 7474 6977
          \n   t   i   t   l   e       =       B 303 244   t   t   w   i
0006140 206c 3031 322e 3035 362e 312e 680a 736f
           l       1   0   .   2   5   0   .   6   .   1  \n   h   o   s
0006160 2074 203d 3031 322e 3035 362e 312e 0a0a
           t       =       1   0   .   2   5   0   .   6   .   1  \n  \n
0006200 2b2b 202b 694e 6465 7265 6962 7070 0a0a

..............

octal 303 is hex c3
octal 244 is hex a4

Looks like your example :-)

This did convert correctly for html, but _not_ for the mini graphs. 
Opposed using LC_ALL=utf8 modified the file so the following was written

0006020 342e 312e 0a0a 2b2b 202b 6142 7465 7774
           .   4   .   1  \n  \n   +   +   +       B   a   e   t   t   w
0006040 6c69 0a0a 656d 756e 3d20 4220 74e4 7774
           i   l  \n  \n   m   e   n   u       =       B 344   t   t   w
0006060 6c69 740a 7469 656c 3d20 4220 74e4 7774
           i   l  \n   t   i   t   l   e       =       B 344   t   t   w
0006100 6c69 3120 2e30 3532 2e30 2e36 0a31 6f68
           i   l       1   0   .   2   5   0   .   6   .   1  \n   h   o

now the a-Umlaut is represented by a single 8 bit character hex e4

In this form the mini grphs are built correctly, however the html output 
is broken.

Maybe I am just dense :-(

cheers

Erich




--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list