Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I convert multiple files to UTF-8 encoding using *nix command line tools?

Okay, now that I can detect the encoding, I know that my encoding is using charset=iso-8859-1 instead of utf. How can I convert this?

share|improve this question

marked as duplicate by Arjan, grawity, quack quixote Jun 13 '10 at 16:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 59 down vote accepted
iconv -f iso-8859-1 -t utf-8 < file > file.new
share|improve this answer
3  
@Arjan: Because I wanted to post a straightforward answer, without hiding it in for loops and "bash magic"? – grawity Jun 13 '10 at 12:32
    
Ok, that might make sense indeed (though such straightforward answers are found in the other questions too). No need for the < by the way. – Arjan Jun 13 '10 at 12:44
5  
@Arjan Note that Google points to this answer first.. – tomdemuyt Jun 18 '11 at 19:18

Not the answer you're looking for? Browse other questions tagged .