I created a file list text file via the DOS command dir [<drive>:][<path>][<filename>] [...] [/p] [/q] [/w] [/d] [/a[[:]<attributes>]][/o[[:]<sortorder>]] [/t[[:]<timefield>]] [/s] [/b] [/l] [/n] [/x] [/c] [/4] [/r], the generated text file is on encoding ANSI, and it causes a problem, the Chinese characters in that text file cannot be read by a third application's script language. It requires the text file is on encoding UTF16LE.
I can convert that text file from ANSI to UTF16LE manually, but I want to find a DOS command that can do this job. or find a way to change the default encoding of the text file generated by the DOS command dir [<drive>:][<path>][<filename>] [...] [/p] [/q] [/w] [/d] [/a[[:]<attributes>]][/o[[:]<sortorder>]] [/t[[:]<timefield>]] [/s] [/b] [/l] [/n] [/x] [/c] [/4] [/r].