locale weirdness when launching a bash script from PHP exec()

Alexandre Aractingi <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <1099938683.19492.50.camel@vienne>
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 <[email protected]>

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.