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


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. – Alexei Feb 13 at 17:14

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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