File/commit preview not correctly detects cp1251
Created by: blackbass1988
Summary
I'm opening files/commits and see that my files in cp1251 don't correctly rendering
How to reproduce
For example. Take next text: "Тагил!!!" and save this in file in cp1251 encoding. You can use vim (:set fileencoding=cp1251)
Next you must add this file and push it to gitlab for see the result
Expected bahavior
"Тагил!!!" in my file
Observed bahavior
"メ璢齏!!!" instead "Тагил!!!"
Relevant logs and/or screenshots
Checks and Version
The check is green and everything works well.
GitLab information
Version: 6.5.1
Revision: 2ffa03a
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: https://git.drom.ru
HTTP Clone URL: https://git.drom.ru/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no