How can I configure the command prompt to output to files in UNICODE/ANSI?

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Windows NT/2000 includes full UNICODE support and its possible toconfigure a CMD.EXE session to output in UNICODE or ANSI (ANSI being thedefault)

To set this when starting the CMD.EXE session just add:

  • /A - Output to files or pipes will be in ANSI

  • /U - Output to files or pipes will be in Unicode

For example

cmd.exe /u

would start a session in UNICODE output mode.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like