Skip to content
Snippets Groups Projects
  • Neil's avatar
    1c6bc9c1
    Prevent a unicode error on UTF-8 in commit metadata. · 1c6bc9c1
    Neil authored
    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.
    1c6bc9c1
    History
    Prevent a unicode error on UTF-8 in commit metadata.
    Neil authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.