How to Echo output to file as ANSI and NOT as Unicode?

M

Matt Solob

From a DOS batch script (under WinXP) I redirect some Echo output to a new textfile e.g.

Echo blah blah >myfile.txt
Echo .... >>myfile.txt

The resulting file is saved as Unicode style instead of ANSI.

How can I achieve a file creation in ANSI style and NOT in Unicode style?

Matt
 
B

Big Al

Matt said:
From a DOS batch script (under WinXP) I redirect some Echo output to a new textfile e.g.

Echo blah blah >myfile.txt
Echo .... >>myfile.txt

The resulting file is saved as Unicode style instead of ANSI.

How can I achieve a file creation in ANSI style and NOT in Unicode style?

Matt

Can you explain your definition of ANSI or more precisely what is wrong
with the text file you are creating. I've been creating text files
for years with no problems, so I'm not sure exactly what your issue is.
 
P

Pegasus \(MVP\)

Matt Solob said:
From a DOS batch script (under WinXP) I redirect some Echo output to a new
textfile e.g.

Echo blah blah >myfile.txt
Echo .... >>myfile.txt

The resulting file is saved as Unicode style instead of ANSI.

How can I achieve a file creation in ANSI style and NOT in Unicode style?

Matt

Answered in detail in your subsequent post. It's a good idea
to close an existing thread when you find an answer, to avoid
duplication of effort.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top