0
I have the following:
$ file DailyFollowUp.csv
DailyFollowUp.csv: Little-endian UTF-16 Unicode text, with very long lines, with CRLF, CR line terminators
$ iconv -c -t ascii DailyFollowUp.csv > output.txt
$ file output.txt
output.txt: data
I am expecting the output.txt file to give ASCII text as a result. Any idea why this isn't working?
This is on Cygwin64
You did not specified what encoding to convert from (
-f
). What is yourlocale
? – choroba – 2014-01-06T16:39:48.677locale is en_US.UTF-8 – Tom Ribbens – 2014-01-06T16:42:10.227
Then please provide the
-f
toiconv
. – choroba – 2014-01-06T22:22:51.957I did, and it did work, but I was hoping iconv would detect automatically the input. And if the source would ever change, it would still work. – Tom Ribbens – 2014-01-07T11:00:28.310
Check the
man
page of iconv: if-f
is not given, it uses the current locale. – choroba – 2014-01-07T16:23:34.570