Attach encoding information in Gitaly::GitCommit
I am happy that after !469 (merged) the response is consistently tagged in ASCII-8BIT with raw bytes, however we don't yet have the encoding information to take care of transcoding this message to UTF-8 for the web.
Could we also have the encoding information for the commit object? For example:
git cat-file -p d67ceecb1765287f5b01b9db7eb8063b5592b59d | less --raw
Could give me:
tree 3cebe7879c2c112091a5516c3b44f1148571bf8a
author Name <name@example.com> 1509740691 +0300
committer Name <name@example.com> 1509919747 +0300
encoding Windows-1251
<C4><EE><E1><E0><E2><E8><F2><FC> <F4><E0><E9><EB><FB> <E2> <EA><EE><E4><E8><F0><EE><E2><EA><E0><F5> Windows-1251 <E8> UTF-8
I would wish we could get that encoding Windows-1251
line. The particular commit could be found in ashumkin/test-encodings@d67ceecb
@jacobvosmaer-gitlab What do you think?