| UtilGetEncoding Method |
Determines a text file's encoding by analyzing its byte order mark (BOM).
Defaults to ASCII when detection of the text file's endianness fails.
Namespace: QsInformatica.UtilsAssembly: QsInformatica.Utils (in QsInformatica.Utils.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax public static Encoding GetEncoding(
string filename
)
Public Shared Function GetEncoding (
filename As String
) As Encoding
public:
static Encoding^ GetEncoding(
String^ filename
)
static member GetEncoding :
filename : string -> Encoding
Parameters
- filename String
- The text file to analyze.
Return Value
EncodingThe detected encoding.
See Also