In my batch file, I need to use this command to use PowerShell to replace the invisible characters of the output files list.
Code: Select all
powershell -command "(get-content %fileListParameter%) -replace '[\xEF\xBB\xBF]+', '' | set-content %fileListParameter%"
In my batch file I can explicitly call to read utf-8 by adding this to the top of the batch file:
Code: Select all
chcp 65001