Issue #852 resolved

pygmentize fails if encoding='guess' is specified

Eric Knibbe
created an issue

Running pygmentize -O encoding='guess' on any file throws an error "LookupError: unknown encoding: guess" unless outencoding is also specified. It looks like the decision between 'utf-8' and 'latin1' made in lexer.py doesn't get passed to the formatter's format() method.

Comments (2)

  1. Log in to comment