Support gitattributes and editorconfig for correct encoding in web editor
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=14222) </details> <!--IssueSummary end--> Web editor and web IDE supposes all files are encoded in utf8. There are many files that are not. GitLab should support common ways to specify file encoding including `.gitattributes` and `.editorconfig` ### Proposal GitLab should detect the encoding of files in the **Web IDE** and **Web Editor** in the following order: 1. `.gitattributes` using the `encoding` field 1. `.editorconfig` using the `charset` field ### Links - [.gitattributes](https://git-scm.com/docs/gitattributes#_viewing_files_in_gui_tools) `encoding` - [EditorConfig](http://editorconfig.org/) can help to do that
epic