1. Georg Brandl
  2. pygments-main
Issue #728 resolved

UnicodeDecodeError: 'utf8' codec can't decode byte 0x85 in position 617: invalid start byte

umpirsky
created an issue

This is the error I get:

{{{

!python

Traceback (most recent call last): ... highlight(diff, DiffLexer(), HtmlFormatter()), File "/usr/lib/python2.7/dist-packages/pygments/init.py", line 86, in highlight return format(lex(code, lexer), formatter, outfile) File "/usr/lib/python2.7/dist-packages/pygments/init.py", line 45, in lex return lexer.get_tokens(code) File "/usr/lib/python2.7/dist-packages/pygments/lexer.py", line 148, in get_tokens text = text.decode(self.encoding) File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0x85 in position 617: invalid start byte }}}

I am rendering this https://github.com/umpirsky/eclipse-templates/commit/3a292de562d8ef9b7b0f92e3f27998f2f66ae4ef diff and the problem is '…' char.

Comments (2)

  1. Log in to comment