- May
- 239
- 2
I have this command sequence:
(echo commandSequence | externalProgram) > file.txt
I would like "file.txt" to be Unicode so this should seem to work:
OPTION //UnicodeOutput=yes
(echo commandSequence | externalProgram) > file.txt
OPTION //UnicodeOutput=no
However, this causes externalProgram to also get its input in Unicode which it does not like too much.
This works as I want, but it requires a temporary file:
(echo commandSequence | externalProgram) > tmpfile.txt
OPTION //UnicodeOutput=yes
type tmpfile.txt > file.txt
OPTION //UnicodeOutput=no
Is there a way to change the UnicodeOutput option after the pipe, but before the redirection to the result file?
I tried this:
((echo commandSequence | externalProgram) & (OPTION //UnicodeOutput=yes)) > file.txt
It produced a file, but it was not in Unicode format.
Should it work, and in that case, how?
(echo commandSequence | externalProgram) > file.txt
I would like "file.txt" to be Unicode so this should seem to work:
OPTION //UnicodeOutput=yes
(echo commandSequence | externalProgram) > file.txt
OPTION //UnicodeOutput=no
However, this causes externalProgram to also get its input in Unicode which it does not like too much.
This works as I want, but it requires a temporary file:
(echo commandSequence | externalProgram) > tmpfile.txt
OPTION //UnicodeOutput=yes
type tmpfile.txt > file.txt
OPTION //UnicodeOutput=no
Is there a way to change the UnicodeOutput option after the pipe, but before the redirection to the result file?
I tried this:
((echo commandSequence | externalProgram) & (OPTION //UnicodeOutput=yes)) > file.txt
It produced a file, but it was not in Unicode format.
Should it work, and in that case, how?