public static string DetectFileEncoding (byte[] inputData, int start, int count) { var det = new FileEncoding (); det.Detect (inputData, start, count); return det.Complete (); }
public static string DetectFileEncoding (Stream inputStream) { var det = new FileEncoding (); det.Detect (inputStream); return det.Complete (); }