Links

MSCEWI1041

The file has an unexpected encoding and was not translated

Severity

Critical

Description

This issue happens when a source code file has an encoding format not recognized by the tool. Character encoding is the process of assigning numbers to graphical characters, in this context written characters of human language, thus the error indicates the conversion tool could not recognize certain characters.

Recommendation

  • All files in the input folder should have the same encoding to avoid this error.
  • The appropriate encoding should be selected through the conversion settings on the General tab or by utilizing the --encoding conversion parameter with the CLI. To determine which encoding to select online tools such as Free Online Formater can be used or run the command file -i * in the case of Linux or OS.