Script "TextStream" Charset Encoding

Hi

Currently I have a script writing a file… looks like it’s writing it by default to UTF-8 encoding, but it needs to be cp1252… Is there any way this can be set?

I use

var TextStream = System.CreateObject( “TextStream” );
TextStream.WriteLn(‘Test’);
TextStream.SaveToFile();

Thanks in advance for the assistance.
Rudi

Hi Rudi,

please try either
TextStream.SaveToANSIFile();
or
**TextStream.Encoding = “ANSI”;
**Regards,

Vaclav