Sublime Forum

Problem with win1251 encoding

#1

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:

5 Likes

#2

It would be great to have the ability to set "fallback_encoding": "Cyrillic (Windows 1251)" - as we can do in Sublime Text.

0 Likes

#3

The same issue. How to set encoding?

0 Likes

#4

I’d like to upvote this bugfix.

0 Likes

#5

Same issue here. Up.

0 Likes

#6

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.

1 Like

#7

@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.

0 Likes