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