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?

link|improve this question

feedback

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

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

up vote 6 down vote accepted
iconv -f iso-8859-1 -t utf-8 < file > file.new
link|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
1  
@Arjan Note that Google points to this answer first.. – tomdemuyt Jun 18 '11 at 19:18
feedback

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