note 103006 deleted from function.escapeshellcmd by danbrown
| From: | danbrown@php.net | Date: | Sat, 19 Mar 2011 18:23:32 +0000 |
| Subject: | note 103006 deleted from function.escapeshellcmd by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178018@lists.php.net to get a copy of this message | ||
Note Submitter: Conrad Hoffmann
----
It should be better documented that this function is locale dependent and by default mangles
non-ascii characters. See here: http://bugs.php.net/bug.php?id=45132
The fix is to call setlocale(LC_CTYPE, 'en_US.UTF-8') before using escapeshellcmd.