UnicodeDecodeError: 'utf8' codec can't decode byte 0xef in position 636: invalid continuation byte #3

Closed
jedie opened this Issue Jun 9, 2011 · 1 comment

Comments

Projects
None yet
2 participants

jedie commented Jun 9, 2011

Get a unicode error on: http://klausdemo.lophus.org/klaus/commit/73e1e9d9f58a70d4034301992492d3e4c6183028/

Traceback (most recent call last):
File "./nano/nano.py", line 179, in call
retval = callback(environ, **kwargs)
File "/home/jonas/klaus/klaus.py", line 33, in wrapper
*_callback(env, *_kwargs))
File "/home/jonas/klaus/klaus.py", line 42, in render_template
return self.jinja_env.get_template(template_name).render(**kwargs)
File "/home/jonas/.local/lib/python2.7/site-packages/jinja2/environment.py", line 891, in render
return self.environment.handle_exception(exc_info, True)
File "templates/view_commit.html", line 2, in top-level template code
{% extends 'base.html' %}
File "templates/base.html", line 1, in top-level template code
{% extends 'skeleton.html' %}
File "templates/skeleton.html", line 12, in top-level template code
{% block content %}{% endblock %}
File "templates/view_commit.html", line 23, in block "content"
{%- for file in repo.commit_diff(commit) %}
File "/home/jonas/klaus/repo.py", line 100, in commit_diff
return prepare_udiff(stringio.getvalue().decode('utf-8'),
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 0xef in position 636: invalid continuation byte

Owner

jonashaag commented Jun 9, 2011

Closing as duplicate of #2.

jonashaag closed this Jun 9, 2011

@jonashaag jonashaag added a commit that referenced this issue Jun 9, 2011

@jonashaag jonashaag Close #2: Support for binary files, includes explicit support for ima…
…ges.

Also adds support for submodule changes in the commit diff view (#1).
Refs #3.
fba5dfe

@jonashaag jonashaag added a commit that referenced this issue Jan 15, 2014

@jonashaag jonashaag Close #2: Support for binary files, includes explicit support for ima…
…ges.

Also adds support for submodule changes in the commit diff view (#1).
Refs #3.
35dfb6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment