Retrieve the file encoding for a given file so we can capture and store the Encoding when writing the file back out after editing.

Default is Utf-8 (w/ BOM). If file without BOM is read it is assumed it's UTF-8.

public static Encoding GetFileEncoding(string srcFile)



See also:

Class mmFileUtils

© West Wind Technologies, 2019 • Updated: 01/06/19
Comment or report problem with topic