PHP trigger_error() and utf8 characters?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

I'm using Apache + mod_php, and I've noticed that when I use trigger_error in PHP, and put some non us-western chacarter in string of the message, it gets written to apache error_log incorrectly.

For example, this line:

<?php trigger_error("Greška", E_USER_WARNING); ?>

dumps following line in error_log:

PHP Warning:  Gre\xc5\xa1ka in /var/www/jsosic.php on line 1

Is this something that can be rectified or should I simply stop using non us-western characters in trigger_error calls?

(For anyone interested, "Greska" stands for error in my native language - Croatian).


I have observed this behaviour on php 5.4 and 5.6 (IUS built RPMs) on CentOS 6.x x86_64.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux