Collect results in for loop when run shell script
The problem is that "Automator" is not support some encoding such as GB18030.Once your file name encoding with them, they can't be convert to utf-8 , it returns a error.