I'm using dulwich (a Python library) to access a git repository. When I use get_object
to retrieve a commit, it has a number of attributes. One of those is author
. When I retrieve this attribute, I get bytes
and so the attribute is an an unknown encoding.
Is there an encoding I can safely assume? Does git translate all the metadata to utf-8 before storing it? If it doesn't, how do I know which encoding to use to decode the bytes?