When source code contains non-ASCII characters, `cppcheck-htmlreport` currently dies with an error like: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 80673: ordinal not in range(128) This is because even though the source code is read as UTF-8, and HTML_HEAD specifies that the file should be read as UTF-8, the output file is opened with the default encoding (ascii).
cppcheck-htmlreport This is a little utility to generate a html report of a XML file produced by cppcheck. The utility is implemented in Python (2.7+) and requires the pygments module to generate syntax highlighted source code. If you are using a Debian based Linux system, the pygments package can be installed by following command: $ sudo apt-get install python-pygments For more information run './cppcheck-htmlreport --help'