Possible Duplicate:
Batch-convert files for encoding or line ending
Since I often work with source code and LaTeX documents written either on Windows, Linux and OS X I was looking for a simple command-line tool available for Linux and OS X which allows me to quickly convert from a format to another... I'm sure it must exist!
Something like:
convert -from utf8 -to iso8859-1 oldfile.tex newfile.tex
Is there something useful for my purpose?
In addition, it would be nice to have something that is able to guess which text format is used within a document. The final answer would be a tool able to to both things :)