May 6th, 2007
How to change encoding of a file?
Another chapter of the book “Encoding is hell” Today I noticed that some files in one of our projects suddenly have been converted to UTF-8 where they should have been in ISO-8859-1. Ok, short question: How to convert it back? Short Answer Use iconv like this: iconv –from-code=UTF-8 –to-code=ISO-8859-1 inputfile.txt > outputfile.txt