Jump to content

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


Recommended Posts

Guest Matt Solob
Posted

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

  • Replies 2
  • Created
  • Last Reply
Guest Big Al
Posted

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

 

Matt Solob wrote:

> 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.

Guest Pegasus \(MVP\)
Posted

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

 

 

"Matt Solob" <msolob@hotmail.com> wrote in message

news:48373add$0$6519$9b4e6d93@newsspool4.arcor-online.net...

> 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.


×
×
  • Create New...