UtilTextFilesGetEncoding(String) Method
Determines the Encoding of the source textfile.
Namespace: DevCase.Core.DataProcessing.TextFilesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Encoding GetEncoding(
string sourceFilepath
)
Public Shared Function GetEncoding (
sourceFilepath As String
) As Encoding
Dim sourceFilepath As String
Dim returnValue As Encoding
returnValue = UtilTextFiles.GetEncoding(sourceFilepath)
public:
static Encoding^ GetEncoding(
String^ sourceFilepath
)
static member GetEncoding :
sourceFilepath : string -> Encoding
No code example is currently available or this language may not be supported.
- sourceFilepath String
-
The source textfile path.
Encoding
If the encoding can be detected, the return value is the detected
Encoding,
if the encoding can't be detected, the return value is
Default.
This is a code example.
No code example is currently available or this language may not be supported.
Dim encoding As Encoding = GetEncoding("C:\file.txt")
Dim encodingName As String = GetEncoding("C:\file.txt").WebName
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.