[smokeping-users] Re: SmokePing 2.0rc5, RRDtool 1.2.11 and UTF-8
Leoš Bitto
smokeping at leos.cz
Mon Aug 15 15:01:27 MEST 2005
Erich Titl wrote:
> I should not have declared success so quickly, this is the situation
> right now:
>
> - I have a UTF8 encoded config file with umlaut characters for ä ö ü
> - I used these for menu _and_ title bars
>
> 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
>
> - I use .htaccess _and_ the method preferred by Tobias to set the
> language environment
>
> .htaccess
> <Files "smokeping.cgi">
> SetEnv LANG en_US.UTF-8
> </Files>
>
> smokeping.cgi
>
> ....
> use Smokeping 1.99006;
> use POSIX;
>
> setlocale (LC_ALL,"en_US.UTF-8");
> Smokeping::cgi("/usr/local/smokeping/etc/config");
> ....
>
I do not use the "use POSIX;" and "setlocale (...);" and it works fine -
setting LANG properly is enough for me. Tobias wrote that calling
setlocale would only be necessarry if the setting is not picked
correctly from the environment variables LANG and LC_*. You might want
check whether your Apache really sets LANG correctly - maybe your
.htaccess is ignored because of "AllowOverride None" in httpd.conf?
> - I have the minmi panel titles displayed correctly now, but the menu
> titles _and the titles for the individual pages show now graphical
> characters instead of the umlaut characters.
If I understand it correctly, the HTML encoding is the problem now. This
can be easily fixed with "charset = UTF-8" in
/usr/local/smokeping/etc/config, right after "template = ...". That was
the easy part for me - I found it in the documentation.
> So back to square 1
I would say advance to the next-to-last square instead! ;-)
> any ideas
>
> Thanks
>
> Erich
>
Leoš
--
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