UNICODIFY
— Convert text
files to Unicode.
Syntax:
UNICODIFY
/A:
attribs /CP:
n /L /N /O /P /Q /S /T /UTF8 /UTF16
filename…
/A: attribs | attributes mask; valid flags are -ACEHIORS |
/CP: n | interpret non-Unicode input text using code page n |
/L | normalize line endings to CR/LF |
/N | disable features |
/O | overwrite read-only files |
/Q | replace ASCII quotes and apostrophes with Unicode open and close quotes |
/S | search in subdirectories for matching files |
/T | quietly |
/UTF8 | rewrite files using UTF-8 encoding |
/UTF16 | rewrite files using UTF-16 encoding (default) |
… | Range options are also supported. |
UNICODIFY
rewrites the contents of text files, changing them to
UTF-16 or UTF-8 encoding. By default, it will skip:
/O
to disable)The original contents of the file will be saved in a new file with the extension .original.
• Note: This command only converts files. Standard input, internet URLs, and the clipboard are not supported. (You can use wildcards, directory aliases, @file lists, and so on.)
OEM characters will be interpreted according to the
current
Windows code page by default; use the /CP:
n
option to specify a different code page. To check the translation before you
actually convert the file, try
UTYPE
with the /CP:
n
option first.
/NB | do not write a Byte Order Mark |
/ND | do not search into hidden directories; only useful with /S |
/NF | suppress the file-not-found error |
/NJ | do not search into junctions; only useful with /S |
/NZ | do not search into system directories; only useful with /S |
You can combine these, e.g. /NDJ
.