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

bumped to the homepage by Community yesterday

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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