getFileEncoding: Determine if a file is 'UTF-8' or 'UTF-8-BOM' (as of MQ2.4) or 'UTF-16BE' or 'UTF-16LE'
Description
Determine if a file is 'UTF-8' or 'UTF-8-BOM' (as of MQ2.4) or 'UTF-16BE' or 'UTF-16LE'
Usage
getFileEncoding(filename)
Value
'' if the file does not exist or is not readable
Arguments
- filename
Relative or absolute path to a file