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)

Arguments

fileName

The path to the file to check

Value

Throws an error if the input file does not have the correct encoding.