문제

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?

도움이 되었습니까?

해결책

Thanks, this worked for me

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top