Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7965

GD and national chars/special chars in graphs

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.3.0
    • Frontend (F)
    • up-to-date Slackware64-14.0, php 5.3.27, apache 2.4.3, gd 2.0.34

      Hi!
      If I put national chars in graph name, instead of national chars and special symbols (for example - ?,?,?,?, degree symbol etc) the squares are displayed.

      I tried to use one solution found on internet by adding the lines

      $string = mb_convert_encoding($string, "HTML-ENTITIES", "UTF-8");
      $string = preg_replace('^(&([a-zA-Z0-9])',htmlentities('${1}'),$string);

      to the function imageText in graphs.inc.php; but that solved just a half of the problem - national chars are displayed correctly, but not the symbols (it seems there is no entity mapping).

      Where could I look in order to find the root of the problem?

      Janis

      P.S.
      GD info:
      gd
      GD Support enabled
      GD Version bundled (2.1.0 compatible)
      FreeType Support enabled
      FreeType Linkage with freetype
      FreeType Version 2.4.11
      T1Lib Support enabled
      GIF Read Support enabled
      GIF Create Support enabled
      JPEG Support enabled
      libJPEG Version 8
      PNG Support enabled
      libPNG Version 1.4.12
      WBMP Support enabled
      XPM Support enabled
      libXpm Version 30411
      XBM Support enabled
      JIS-mapped Japanese Font Support enabled

      Directive Local Value Master Value
      gd.jpeg_ignore_warning 0 0

      php configure options
      './configure' '-with-apxs2=/usr/bin/apxs' 'prefix=/usr' 'libdir=/usr/lib64' 'with-libdir=lib64' 'sysconfdir=/etc' 'disable-safe-mode' 'enable-maintainer-zts' 'disable-magic-quotes' 'enable-zend-multibyte' 'enable-mbregex' 'enable-tokenizer=shared' 'with-config-file-scan-dir=/etc/php' 'with-config-file-path=/etc/httpd' 'enable-mod_charset' 'with-layout=PHP' 'enable-sigchild' 'enable-xml' 'enable-intl=shared' 'with-libxml-dir=/usr' 'enable-simplexml' 'enable-filter' 'disable-debug' 'with-openssl=shared' 'with-pcre-regex=/usr' 'with-zlib=shared,/usr' 'enable-bcmath=shared' 'with-bz2=shared,/usr' 'enable-calendar=shared' 'enable-ctype=shared' 'with-curl=shared' 'with-curlwrappers' 'with-mcrypt=/usr' 'enable-dba=shared' 'with-gdbm=/usr' 'with-db4=/usr' 'enable-exif=shared' 'enable-ftp=shared' 'with-gd=shared' 'with-jpeg-dir=/usr' 'with-png-dir=/usr' 'with-zlib-dir=/usr' 'with-xpm-dir=/usr' 'with-freetype-dir=/usr' 'with-t1lib=/usr' 'enable-gd-native-ttf' 'enable-gd-jis-conv' 'with-gettext=shared,/usr' 'with-gmp=shared,/usr' 'with-iconv=shared' 'with-imap-ssl=/usr' 'with-imap=/usr/local/lib64/c-client' 'with-ldap=shared' 'enable-mbstring=shared' 'enable-hash' 'with-mysql=shared,mysqlnd' 'with-pgsql=shared' 'with-mysqli=shared,mysqlnd' 'with-mysql-sock=/var/run/mysql/mysql.sock' 'enable-pdo=shared' 'with-pdo-mysql=shared,mysqlnd' 'with-pdo-pgsql=shared' 'with-pdo-sqlite=shared,/usr' 'with-enchant=shared,/usr' 'enable-shmop=shared' 'with-snmp=shared,/usr' 'enable-soap=shared' 'enable-sockets' 'with-sqlite=shared' 'with-sqlite3=shared' 'enable-sqlite-utf8' 'with-regex=php' 'enable-sysvmsg' 'enable-sysvsem' 'enable-sysvshm' 'enable-wddx=shared' 'with-xsl=shared,/usr' 'enable-zip=shared' 'with-tsrm-pthreads' 'enable-shared=yes' 'enable-static=no' 'with-gnu-ld' 'with-pic' '-build=x86_64-slackware-linux'

            Unassigned Unassigned
            jancs Janis Eisaks
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: