ID: 45132 Updated by: [EMAIL PROTECTED] Reported By: tom at collegit dot se Status: Assigned Bug Type: Strings related Operating System: Linux www2 2.6.24.7-grsec PHP Version: 5.2.6 Assigned To: iliaa New Comment:
Try using: setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8"); Previous Comments: ------------------------------------------------------------------------ [2008-05-29 22:55:58] [EMAIL PROTECTED] Ilia, did that fix get into actual release..? ------------------------------------------------------------------------ [2008-05-29 22:53:54] tom at collegit dot se Description: ------------ Since my web server got updated to 5.2.6 escapeshellcmd() has started removing all Swedish characters from user input. Looks a lot like bug #44564. './configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--with- mysql=/usr/local/mysql' '--enable-debug=no' '--enable-track-vars' '-- with-imap=/usr/local/imap' '--with-mcrypt' '--with-mhash' '--with-dom' '--with-gd' '--with-jpeg-dir' '--enable-ftp' '--with-freetype- dir=/usr' '--with-zlib-dir=/usr' '--with-png-dir=/usr' '--enable- dbase' '--with-gettext' '--with-zlib' '--enable-inline-optimization' '--with-openssl' '--with-curl' '--with-curlwrappers' '--enable-exif' '--with-imap-ssl' '--enable-bcmath' '--enable-mbstring' '--enable- wddx' '--with-xsl' '--with-pdo-mysql=/usr/local/mysql' '--with- mysqli=/usr/local/mysql/bin/mysql_config' '--enable-soap' '--enable- sockets' '--with-mssql' '--with-ming' '--with-pspell' '--enable- calendar' '--enable-bcmath' '--with-t1lib' '--with- pgsql=/usr/local/pgsql' '--with-tidy' '--enable-zip' Reproduce code: --------------- $test = "åäö"; $test = (escapeshellcmd($test)); print $test; Expected result: ---------------- "åäö" Actual result: -------------- "" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45132&edit=1