In Mac OS X is builtin utility for converting text files from one to another encoding. This can be useful when the need to convert files from the national character sets to UTF-8.
Go to console and type: iconv -l
This will show list of supported encodings
For converting file "index.html" in current directory from russian code page CP1251 into UTF-8 type:
iconv -f CP1251 -t UTF-8 index.html > index-utf-8.html
or desc order if index.html in utf-8 format:
iconv -f UTF-8 -t CP1251 index.html > index-cp1251.html