Forum Discussion
JoyriderBC
Jun 18, 2021Copper Contributor
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...
- 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
JoyriderBC
Jun 24, 2021Copper Contributor
farismalaeb The double quotes are minor problem. It is the record corruption. See the HEX dump where after every character there are unprintable codes.
farismalaeb
Jun 28, 2021Iron Contributor
Can you share part of the output file, just put dump data in it and let me have a closer look.
Thanks
Thanks