ANSI or UTF8 without BOM: Read Text with the Right Encoding Build a StreamReader that can differentiate between ANSI and UTF8 regardless of a byte order mark Click here to read the article