For its input files, CohortDiagnostics only accepts UTF-8 or ASCII character encoding. This function can be used to check whether a file meets these criteria.
checkInputFileEncoding(fileName)
The path to the file to check
Throws an error if the input file does not have the correct encoding.