Charles Dye
Super Moderator
- May
- 5,226
- 149
Staff member
Code:
for %f in ( *.txt ) tpipe /input="%f" /output="%@name[%f].utf8" /unicode=ansi,utf-8 /string=1,0,\xef\xbb\xbf
This example adds a UTF-8 byte order mark. If you don't want the BOM, omit the /STRING= option. (The last argument to /STRING appears to be a string of bytes, not characters. If you use the intuitive \xFEFF, you'll get gribble at the start of the file.)