Share via


EncodingHelper.GetEncoding(String) Method

Definition

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

Returns

Applies to