Okapi .NET Library

Routines.DetectEncoding Method 

 [This is preliminary documentation and subject to change.]

Detects the encoding of a file when possible.

[Visual Basic]
Shared Public Function DetectEncoding( _ 
   ByVal p_sPath As String _ 
) As String
[C#]
public static string DetectEncoding(
   string p_sPath
);
[C++]
public: static String* DetectEncoding(
   String* p_sPath
);
[JScript]
public static function DetectEncoding(
   String p_sPath
): String;

Parameters

p_sPath
Full path of the file to check.

Return Value

The name of the detected encoding, or null if none was detected.

See Also

Routines Class | Okapi.Library.Base Namespace