Author: BradAmodeo | Posted on: 10/29/2009 1:51:50 PM | Views : 1197

Is it possible to automatically detect the file encoding for a text file (I'm using C#)?  I am expecting files to be in UTF-8 format, but my program still runs if the file is a standard text file.  I'd like to generate an error if it is not UTF-8.  A brief code example snipet would be greatly appreciated.
When I am in debug mode in VS, I am seeing small boxes (maybe they are nulls?...I'm not sure what they are).
Thanks! 
...

Go to the complete details ...