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
DetectEncodingmethod supports files with or without BOM. the following encodings can be detected:ANSI,UTF-8andUTF-16(BE,LE).
- See also
- ReadText Method.