Domanda

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?

È stato utile?

Soluzione

Thanks, this worked for me

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top