mmFileUtils.GetFileEncoding

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)

Parameters

srcFile


See also:

Class mmFileUtils

© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic