DetectEncoding
Use heuristics to try to infer the encoding of the target text file.
Syntax
expression.DetectEncoding
(FilePath)
Parameters
The required FilePath argument is an identifier specifying a String
type variable.
Return value
Type: String
📝Note
The
DetectEncoding
method supports files with or without BOM. the following encodings can be detected:ANSI
,UTF-8
andUTF-16
(BE,LE).
- See also
- ReadText Method.