Emacs 26.1, Windows 10

In my init.el:

(set-language-environment "UTF-8")

But when I open text file the Emacs not show correct Cyrillic text. enter image description here


describe-variable -> buffer-file-coding-system 

show that file is encoded in utf-8-dos

  • As a temporary fix, try M-x revert-buffer-with-coding-system and choose "utf-8".
    – g-gundam
    Commented Nov 26, 2022 at 16:05

1 Answer 1


Can you add (set-default-coding-systems 'utf-8) after (set-language-environment "UTF-8")? Here is a reference for dealing with Unicode http://ergoemacs.org/emacs/emacs_n_unicode.html. Take a look at the section How to set default file encoding?.

  • Not help. Same result. Commented Feb 13, 2019 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.