locale weirdness when launching a bash script from PHP exec()
| From: | Alexandre Aractingi | Date: | Mon, 08 Nov 2004 18:31:23 +0000 |
| Subject: | locale weirdness when launching a bash script from PHP exec() | ||
| Groups: | php.i18n | ||
| Request: | Send a blank email to php-i18n+get-789@lists.php.net to get a copy of this message | ||
Hi all,
I don't know yet if the problem is related to PHP or to Apache, but here
it is:
I have a PHP4 page that passes arguments to a bash script (Apache is
running on Debian by the way) through the exec() function. These
arguments can include locale characters (like the French "é" for
example).
I noticed that these characters are messed up when passed to the bash
script, although on my Mandrake laptop (that I installed in French - my
Debian server was installed in English), everything is passed correctly.
I don't know which parameter to tune to get the exec() function to keep
the locale chars ok, any idea? (would changing the $LANG to fr_FR do any
good?)
Thanks in advance,
--
Alexandre Aractingi <aaractingi@libertysurf.fr>