Alternative to iconv

2011-10-05 Thread Walter Barnes

Hi all,

I have a large csv file (1.5GB) that I need to convert from UTF-16 to 
UTF-8 however it appears iconv is not currently included in cygwin. Due 
to the large size of the file I would rather not open it in an editor. 
Is there an alternative command line tool I can use?


Thanks!
Walter

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Alternative to iconv

2011-10-05 Thread Walter Barnes
Thanks Eric, I had previously ran the setup utility and searched for 
iconv and found only the libraries (libiconv and libiconv2). Also, 
libiconv2 was pre-installed but I was still getting "command not found" 
when I attempted to run iconv. I went ahead and installed the libiconv 
package in addition to libiconv2 and it works now... maybe a note in the 
package description that libiconv2 does not include the executable?


Thanks again,
Walter

On 10/5/2011 3:13 PM, Eric Blake wrote:

On 10/05/2011 04:04 PM, Walter Barnes wrote:

Hi all,

I have a large csv file (1.5GB) that I need to convert from UTF-16 to
UTF-8 however it appears iconv is not currently included in cygwin.


Huh?  iconv is too part of cygwin:

$ cygcheck -p iconv\\.exe
Found 3 matches for iconv\.exe
libiconv/libiconv-1.13.1-1GNU character set conversion library and 
utilities
libiconv/libiconv-1.13.1-2GNU character set conversion library and 
utilities
libiconv/libiconv-1.14-1GNU character set conversion library and 
utilities


Maybe you just need to rerun setup.exe and install the libiconv 
package, if you don't already have it present on your machine.




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple