Webalizer output encoding

Discussion in 'Installation/Configuration' started by reeprich, Jan 27, 2010.

  1. reeprich

    reeprich New Member

    Hi,

    have problem after changing webalizer default language from english to slovak (followed this tutorial - thx. Till http://www.faqforge.com/linux/controlpanels/ispconfig2/change-the-language-of-webalizer-statistics-on-debian-and-ubuntu-linux/).
    Some characters are not shown correctly (ľ,š,ž). Reason is that webalizer using UTF-8 encoding and there should be ISO-8859-2 (changing codepage in IE,Firefox,Chrome solved this).
    I was looking in webalizer.conf files, but there are not any options relevant to this.
    Any suggestions how to change encoding to propper format?
    Thx.
     
  2. Davide

    Davide Member

    Debian webalizer uses gettext, so it will generate statistics on the default locale of your system.

    With Debian > 4.0 (etch), you can change your locale with:

    update-locale LANG=es_ES.UTF-8

    You can momentarily force generation in another language simply changing your LANG:

    export LANG=es_ES.UTF-8; webalizer

    More info:

    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291368
     

Share This Page