php使用唯一字符运行shell_exec

php使用唯一字符运行shell_exec,php,linux,Php,Linux,我正在使用一个python脚本将视频上传到youtube 我会像这样在php上触发这个python脚本 $result3 = escapeshellcmd('/usr/bin/python /usr/bin/youtube-upload --title="' . $title . '" --client-secrets=/usr/share/youtube_upload/client_secrets.json --credentials-file=/usr/share/youtube_uploa

我正在使用一个python脚本将视频上传到youtube

我会像这样在php上触发这个python脚本

$result3 = escapeshellcmd('/usr/bin/python /usr/bin/youtube-upload --title="' . $title . '" --client-secrets=/usr/share/youtube_upload/client_secrets.json --credentials-file=/usr/share/youtube_upload/credential.json ' . $filename . ' 2>&1');

$res5 = shell_exec($result3);
但title有时包含土耳其语字符,shell_exec从不使用土耳其语字符,但我在ssh上尝试过这个命令,效果很好

当我使用escapeshellcmd命令时,它会删除土耳其字符,对我来说毫无意义

如何使用土耳其字符运行此脚本

------我搞定了--------

1-通过php将shell命令写入txt文件。 来自php shell_exec的2-trigger read.py 通过python读取txt文件并发送shell命令os.system函数

read.py第一行应该是
#-*-编码:对于土耳其语字符,iso-8859-9-*-

我像这样修好了,我学了一点python