I'm trying to send a string as a shell argument via system()
in php.
Everything works fine until I send a string with special characters like this one "Œ" in particular. So, when I send this string "ŒDucks" the shell just recieves "Ducks"
I've tried escaping it adding "/", "\", simple quotes but it doesnt matter, I get the same result
This is my code:
system('/usr/bin/perl /var/prof/info.pl'.' '.EscapeShellArg("ŒDucks") > /dev/null &');
Thanks for your time :)