When I export my LinkedIn connections from:https://www.linkedin.com/connected/manage_sourcesI get a Microsoft Outlook CSV file back.But when I try to CSV.read the file using Ruby I get the following error:invalid byte sequence in UTF-8I'm able to encode the CSV properly by opening it up in Excel and then Save Asing it with UTF-8 encoding.However, I'd really like to be able to do this from the command line and not have to use Excel at all.I read in another answer that iconv might be an option. But I wasn't able to get it to work:iconv -f US-ASCII -t UTF-8 test/fixtures/1481995385116.csverror:iconv: test/fixtures/1481995385116.csv:145:19: cannot convertWhen I check what kind of file it is I get:test/fixtures/1481995385116.csv: Non-ISO extended-ASCII text, with very long lines, with CRLF, LF line terminatorsIs there a different CLI I can use or am I using iconv wrong?Edit:As suggested, the output of hexdump:  c/t/fixtures master  hexdump 1482372034326.csv|head0000000 22 54 69 74 6c 65 22 2c 22 46 69 72 73 74 20 4e0000010 61 6d 65 22 2c 22 4d 69 64 64 6c 65 20 4e 61 6d0000020 65 22 2c 22 4c 61 73 74 20 4e 61 6d 65 22 2c 220000030 53 75 66 66 69 78 22 2c 22 45 2d 6d 61 69 6c 200000040 41 64 64 72 65 73 73 22 2c 22 45 2d 6d 61 69 6c0000050 20 32 20 41 64 64 72 65 73 73 22 2c 22 45 2d 6d0000060 61 69 6c 20 33 20 41 64 64 72 65 73 73 22 2c 220000070 42 75 73 69 6e 65 73 73 20 53 74 72 65 65 74 220000080 2c 22 42 75 73 69 6e 65 73 73 20 53 74 72 65 650000090 74 20 32 22 2c 22 42 75 73 69 6e 65 73 73 20 53  c/t/fixtures master  file 1482002728101.csv1482002728101.csv: UTF-8 Unicode text, with very long lines, with CR line terminators  c/t/fixtures master  file 1482372034326.csv1482372034326.csv: Non-ISO extended-ASCII text, with very long lines, with CRLF, LF line terminators  c/t/fixtures master  hexdump -c 1482002728101.csv|head0000000   T   i   t   l   e   ,   F   i   r   s   t       N   a   m   e0000010   ,   M   i   d   d   l   e       N   a   m   e   ,   L   a   s0000020   t       N   a   m   e   ,   S   u   f   f   i   x   ,   E   -0000030   m   a   i   l       A   d   d   r   e   s   s   ,   E   -   m0000040   a   i   l       2       A   d   d   r   e   s   s   ,   E   -0000050   m   a   i   l       3       A   d   d   r   e   s   s   ,   B0000060   u   s   i   n   e   s   s       S   t   r   e   e   t   ,   B0000070   u   s   i   n   e   s   s       S   t   r   e   e   t       20000080   ,   B   u   s   i   n   e   s   s       S   t   r   e   e   t0000090       3   ,   B   u   s   i   n   e   s   s       C   i   t   y  c/t/fixtures master  hexdump -c 1482372034326.csv|head0000000      T   i   t   l   e      ,      F   i   r   s   t       N0000010   a   m   e      ,      M   i   d   d   l   e       N   a   m0000020   e      ,      L   a   s   t       N   a   m   e      ,   0000030   S   u   f   f   i   x      ,      E   -   m   a   i   l0000040   A   d   d   r   e   s   s      ,      E   -   m   a   i   l0000050       2       A   d   d   r   e   s   s      ,      E   -   m0000060   a   i   l       3       A   d   d   r   e   s   s      ,   0000070   B   u   s   i   n   e   s   s       S   t   r   e   e   t   0000080   ,      B   u   s   i   n   e   s   s       S   t   r   e   e0000090   t       2      ,      B   u   s   i   n   e   s   s       SHow do you tell the format from the output?
Convert character encoding to UTF-8 in a .csv file
files;csv;conversion