[API] /api/v3/projects/{projectId}/repository/commits/ problem encoding non-ascii characters
Summary
This is continuation of issue: https://github.com/gitlabhq/gitlabhq/issues/6244
Despise what encoding gitlab will serve, there's no information about content encoding.
There should be hint about encoding in one of the headers. Ex. Content-Type or Accept-Charset.
Steps to reproduce
open in browser: https://gitlab.com/api/v3/projects/1063546/repository/commits/3fabe415af4ae792ce1732c0921330a4832457a2?private_token={privateToken}
Commit message is: "(...)funkcjonalnoÅÄ (...)zakĹadki(...)"
should be: "(...)funkcjonalność (...)zakładki(...)"
You can run Java test: https://github.com/Augustyn/JIRA-Gitlab-integration/blob/db47fd2a843867316398827183ca252965a40b53/src/test/java/ut/pl/hycom/jira/plugins/gitlab/integration/service/CommitServiceTest.java#L68
What is the current bug behaviour?
Message is encoded in ISO-8859-1, should be in UTF-8. OR there should be hint in headers about used encoding.
What is the expected correct behaviour?
UTF-8 encoded string. Or at least information about encoding in one of the headers.
Output of checks
This bug happens on GitLab.com