on-internet
← Community

How do I change my Powershell script so that it writes out-file in ANSI - Windows-1252 encoding?

Stack Overflow ·

I have a banking application script that generates a “filtered” output file by removing error records from a daily input bank file (see How do I create a Windows Server script to remove error records, AND the previous record to each, from a file with the results written to a NEW file). The “filtered” output file will be sent to the State for updating their system. As a side note, the original input files that we receive from the bank show as Unix 1252 (ANSI Latin 1) in my file editor (UltraEdit), and each record ends only with a line feed. I sent a couple of test output files generated from bo

Comments

Sign in or sign up to comment and upvote.

No comments yet.