Character Encoding Detection

A good starting point is dan04 answer: c# – How to detect the character encoding of a text file? – Stack Overflow

Detect Encoding for In- and Outgoing Text for use of mlang.dll in Windows (include outbound text detection) or ports of Mozilla’s charset detector to .Net: