Please enable JavaScript to view this site.

Navigation: TCC > Commands

UNICODE

Scroll Prev Top Next More
Purpose:Copy a file to a new encoding type.

 

Format:UNICODE [/=] [/N] /From=type /To=type inputfile outputfile

 

Usage:

 

The possible values for the encoding type are:

 

*  (auto detect)

UTF-16LE

UTF-16BE

UTF-32LE

UTF-32BE

UTF-8

ANSI

ASCII

CPnnn, where nnn is a Windows code page.

 

If you use * for the type, TCC will try to determine the file encoding - this is not 100% accurate for UTF-8 and UTF-16, and TCC can't tell the difference between ANSI, ASCII, and the various code pages (see below).

 

UNICODE supports the CLIPn: and TMPn: pseudo-devices for the input and output files.

 

Options:

 

/=Display the UNICODE command dialog to help you set the command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog.

 

/NDon't write a UTF-16 / UTF-32 BOM to the output file

 

/fromEncoding for the input file.

 

/toEncoding for the output file.