Forum Discussion

JoyriderBC's avatar
JoyriderBC
Copper Contributor
Jun 18, 2021
Solved

Powershell is corrupting comma delimited files

My PowerShell script is adding double quotes and formatting the text incorrectly.  I am removing lines that have a particular string. This line created by PowerShell script "RECTYPE,CNTBTCH,CNTITEM...
  • diecknet's avatar
    Jun 28, 2021

    JoyriderBC You can specify the encoding of the files with the -Encoding parameter.

     

    For example:

     

    Out-File c:\Exports\'Receiving Export SAGE Zeroes Gone.CSV' -Encoding utf8

     

     

Resources