I have a bash script to run python script with arguments and it's working perfectly in terminal but when I run it in background mode using php, it gives me encoding error. actually script doesn't have any errors.
The command in terminal is just sudo bash total_report.sh
Background mode in php script: shell_exec("sudo bash total_report.sh > /dev/null 2>/dev/null &")
I know this is locale issue but please teach me how to solve this problem.
'ascii' codec can't encode character '\xae' in position 59: ordinal not...