Having utf-8 in the commit metada (e.g author, commit message, file
names) triggered a decoding error:
"UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 42: ordinal not in range(128)"
This is because the __unicode__ method of the Commit class, doesn't
actually return an object of type 'unicode' although it should.
self.url = webview
except IOError:
self.url = ""
- return self.template % self.__dict__
+ return unicode(self.template % self.__dict__, "utf-8")
class GenericExtractor:
"Generic class for encapsulating data from a VCS."