I\'m using the StreamReader class in .NET like this:
using( StreamReader reader = new StreamReader( \"c:\\somefile.html\", true ) { string filetext = rea
Libary http://www.codeproject.com/KB/recipes/DetectEncoding.aspx
And perhaps a useful thread on stackoverflow