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 ...