Problems with accented characters when using Z-Ray

Follow

Issue

When using Z-Ray, characters using accents are not displayed correctly.  When Z-Ray is disabled the characters display correctly.

Environment

Zend Server 7.0, using Z-Ray

Linux, Windows, Mac OS X, IBMi

Resolution

This known issue has been fixed for future releases.  To work around the issue in Zend Server 7.0, it is necessary to replace a specific library file and restart Zend Server.  The relevant library file depends on the OS and PHP version in use.

  • Linux / Mac OS X
    /usr/local/zend/lib/statistics/php-5.5.x/ZendStatistics.so
    /usr/local/zend/lib/statistics/php-5.4.x/ZendStatistics.so
  • Windows
    C:\Program Files (x86)\Zend\ZendServer\lib\statistics\php-5.4.x\StatsExt.dll
    C:\Program Files (x86)\Zend\ZendServer\lib\statistics\php-5.5.x\StatsExt.dll
  • IBMi
    /usr/local/zendsvr6/lib/statistics/php-5.5.x/ZendStatistics.so
    /usr/local/zendsvr6/lib/statistics/php-5.4.x/ZendStatistics.so

To fix the issue, use the following steps.

  1. Download the appropriate library from the download section below.
  2. Backup the original file by moving it out of the directory. Changing the filename in the current directory may result in library loading conflicts.
  3. Extract the downloaded file and place it in the directory.
  4. Restart Zend Server and the web server (apache, nginx, IIS).
  5. Retest the page that was not working.

Details

The behavior can be reproduced with the following PHP code.  The expected result is "hËllô".  Before the fix, the result will appear as "h�ll�".

<?php
header('Content-Type: text/html; charset=iso-8859-1');
print "h";
print chr(203);
print "ll";
print chr(244);
?>

Downloads

Operating System PHP Version Download Name
IBMi 5.4.29 ibmi-php5.4.29-statisticslib.zip
IBMi 5.5.13 ibmi-php5.5.13-statisticslib.zip
Mac OS X 5.4.29 osx-php5.4.29-statisticslib.zip
Mac OS X 5.5.13 osx-php5.5.13-statisticslib.zip
Windows 5.4.29 win-php5.4.29-statisticslib.zip
Windows 5.5.13 win-php5.5.13-statisticslib.zip
RHEL/CentOS (32bit) 5.4.29 rhel32-php5.4.29-statisticslib.zip
RHEL/CentOS (32bit) 5.5.13 rhel32-php5.5.13-statisticslib.zip
RHEL/CentOS (64bit)   5.4.29  rhel64-php5.4.29-statisticslib.zip
RHEL/CentOS (64bit)   5.5.13  rhel64-php5.5.13-statisticslib.zip
Ubuntu/Debian (32bit) 5.4.29  debian32-php5.4.29-statisticslib.zip
Ubuntu/Debian (32bit)  5.5.13  debian32-php5.5.13-statisticslib.zip
Ubuntu/Debian (64bit)  5.4.29  debian64-php5.4.29-statisticslib.zip
Ubuntu/Debian (64bit)   5.5.13  debian64-php5.5.13-statisticslib.zip
SLES/OpenSuse (32bit) 5.4.29  sles32-php5.4.29-statisticslib.zip
SLES/OpenSuse (32bit)  5.5.13  sles32-php5.5.13-statisticslib.zip
SLES/OpenSuse (64bit)  5.4.29  sles64-php5.4.29-statisticslib.zip
SLES/OpenSuse (64bit)  5.5.13  sles64-php5.5.13-statisticslib.zip

 

Have more questions? Submit a request

Comments

  • Avatar
    André Antônio Lemos de Moraes

    Thanks for the correction

  • Avatar
    André Antônio Lemos de Moraes

    I upgraded to version 8 of Zend Server with PHP 5.6 and the problem returned. Can anything be done?

  • Avatar
    Zvika Dror

    I've verified the accented chars are presented properly in ZS 8.0.2 (Linux and Windows).
    For any specific issue, you should open a support ticket and we'll handle accordingly, including reopening fixed bugs if new information is presented.

  • Avatar
    André Antônio Lemos de Moraes

    Hello, sorry for the mistake, what happened was that installed the version 8 of Zend Server and it came with default charset UTF-8 and it made my stay sources buggy, removed this setting and everything worked.

Powered by Zendesk