using command
$ret = shell_exec($command);
results in $ret
being null when $command
returns string containing non-ascii characters (papír), but it works when $command
returns string without non-ascii characters
same happens when using exec or system
as $command
i tried
'LANG=en_US.utf-8; python myapp.py '.escapeshellarg($in);
'python myapp.py '.escapeshellarg($in);
results obviously depends on $in, but it works when $in
contains non-ascii characters and script returns only ascii characters, so problem is with output not input in my opinion