EncodingHelper.GetEncoding(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper method to get the encoding of a file from its BOM
public:
static System::Text::Encoding ^ GetEncoding(System::String ^ filePath);
public static System.Text.Encoding GetEncoding (string filePath);
static member GetEncoding : string -> System.Text.Encoding
Public Shared Function GetEncoding (filePath As String) As Encoding
Parameters
- filePath
- String