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.

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.

1 Answer 1

up vote 31 down vote accepted
iconv -f iso-8859-1 -t utf-8 < file > file.new
share|improve this answer
...why not vote to close instead? –  Arjan Jun 13 '10 at 12:24
@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
@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 or ask your own question.