"new.csv" What is t" /> "new.csv" What is t" /> "new.csv" What is t"/>

Codepage 1252 file conversion

349 Views Asked by At

I am migrating a script from Windows to Linux. The Windows script is doing the following conversion:

chcp 1252

type "source.csv" > "new.csv"

What is the equivalent command to perform the conversion on Linux?

1

There are 1 best solutions below

0
steelcityamir On BEST ANSWER

Thanks, this worked for me

iconv -f UTF-16 -t WINDOWS-1252 -o new.csv source.csv