MartinH
MartinH

Reputation: 23

Combine CSV-files with Windows-1252 encoding using PowerShell

I've got a lot of CSV files I want to merge using PowerShell. Previously, I have used following command:

(gc *.csv  -encoding utf8) | out-file all-files.csv -encoding utf8

However, the files I want to merge this time have Windows-1252/WinLatin1 encoding. I have tried to merge them by dropping the -encoding utf8 or by changing it to -encoding default, but neither gives me the result I need, because it changes the non-ASCII characters to literal ?.

Any advice?

Upvotes: 1

Views: 1437

Answers (0)

Related Questions