Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to work out how to convert a file to UTF-8 but I really can't find much useful info on google other than to use iconv.... I downloaded that but when I went to run it via the CLI it told me that I hadn't installed it properly or something??

Any help?

Btw.... the file is a rather large file. (5M lines)

Thanks!

share|improve this question

2 Answers 2

Well, you can just use iconv. You can for example download a Setup.exe from GnuWin32, that should just work (TM).

Also see the question Batch-convert files for encoding or line ending which describes how to convert using the command line on Windows.

share|improve this answer
    
Thanks a lot! :) –  Brett May 30 '11 at 16:07
    
No matter what I do I cannot seem to get iconv working & it keeps complaining about needing intl.dll –  Brett May 30 '11 at 19:42
    
libintl.dll can be found here: gnuwin32.sourceforge.net/packages/libintl.htm, just put libintl.dll into the same directory as iconv.exe. –  Steve Aug 29 at 18:05

Notepad++ provides an easy (manual) way to do it. Open your file, choose "Encoding > Convert to UTF-8", and save. I think the size limit is 2 GB.

share|improve this answer
    
Ok, I just tried this but it choked on a 889MB file & I've read other reports that it couldn't even open much smaller files & hence I'm still looking. :( –  Brett May 30 '11 at 19:40
    
    
Nope.... first one said "error" when I tred to run my file & didn't say why & second one I really don't think it's a good idea to paste 5M lines into a web form. ;) –  Brett May 30 '11 at 21:15
    
Keep Googling? Here's another one: sourceforge.net/projects/iconvnet –  user775598 May 30 '11 at 21:18
    
I'll try that... but yes, I have been looking. Tried another but seemed like it loaded the file into memory or something as Windows had to increase the size of my paging file & closing all my programs to reboot took forever. –  Brett May 30 '11 at 21:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.