For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2006 > Strange behaviour of shell_exec









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Strange behaviour of shell_exec
Don

2006-03-16, 7:55 am

Hi,

I have a problem with the special characters on the function shell_exec
(under Linux Debian with php 4.3.10-16):

$msg = '"'."Léà t'es où?".'"';

$output = shell_exec('java myClass'.' '.$msg);

All the special characters in $msg like é or à are turned into the
strange characters with shell_exec function. Whereas under the shell if
I type :

java myClass "Léà t'es où?"

It works fine with all the special characters.

Is there a way to walk arround this problem?

Thank you in avance

Don
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com