Good day. Is it possible to change encoding in source code viewing window? Sources of my project encoded in win1251 and i have problem with viewing cyrillic symbols, like this:
Problem with win1251 encoding
It would be great to have the ability to set "fallback_encoding": "Cyrillic (Windows 1251)"
- as we can do in Sublime Text.
We’ve got a solution for this in the pipeline. Git already has a feature for specifying the encoding used by gui tools using the gui.encoding
setting or .gitattributes
. We’ll be using that in the future to decode files. Please see https://www.git-scm.com/docs/gitattributes#_code_encoding_code for more details.
@Sulakov_AS, hello!
I had had the same problem with encoding in Sublime Merge.
Like @bschaaf said you can set encoding used by gui using the gui.encoding
setting.
I just added into file .git/config
this lines:
[gui]
encoding = cp1251
After reload Sublime Merge he had shown commit diff correctly.
I used Sublime Merge build 2020. I think this is important.