How to convert a textfile from utf-16 to utf-8 inside switch with the execute command.
In the terminal it's working:
iconv -f utf-16 -t utf-8 input_utf16.txt > output_utf8.txt
How to set the paths in switch, see screenshot...
(and maybe some tips on setting the 'output' and 'fail if exit code is')
utf-16 to utf-8
"%1"/_[Job.etc. is wrong. %1 is a complete path to the input file, so "%1" is all you need.
As the command generates output, having "Output" set to "None" is also not going to work. I recommend choosing "Updated input job" and in the "Arguments" you then simply have:
-f utf-16 -t utf-8 "%1"
If you want to rename the file, do that with a separate "Rename job" afterwards.
Freddy
As the command generates output, having "Output" set to "None" is also not going to work. I recommend choosing "Updated input job" and in the "Arguments" you then simply have:
-f utf-16 -t utf-8 "%1"
If you want to rename the file, do that with a separate "Rename job" afterwards.
Freddy
In that case the file is disappearing...
(with copy input path: no)
when fail exit code set to Nonzero it goes into the Problem jobs
Error message:
04.10.2013 15:10:59.853 error Execute command
Operation: Job failed because outcode is nonzero, outcode = [%1]
Argument: 1
Flow: utf16 naar utf8
Element: iconv
Ticket: 00K62
File: _00K62_16.txt
(with copy input path: no)
when fail exit code set to Nonzero it goes into the Problem jobs
Error message:
04.10.2013 15:10:59.853 error Execute command
Operation: Job failed because outcode is nonzero, outcode = [%1]
Argument: 1
Flow: utf16 naar utf8
Element: iconv
Ticket: 00K62
File: _00K62_16.txt