PHP trigger_error() and utf8 characters?

From: Date: Fri, 28 Nov 2014 00:02:36 +0000
Subject: PHP trigger_error() and utf8 characters?
Groups: php.general 
Request: Send a blank email to php-general+get-324065@lists.php.net to get a copy of this message
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.

« previous php.general (#324065) next »