Suppose I open a file and find there
Ïåñíÿ àëüïèíèñòîâ
and so on. Can I make emacs find the correct encoding? AkelPad for example has such feature - in most cases it'll open a file with a correct encoding.
This page http://www.gnu.org/s/libtool/manual/emacs/Recognize-Coding.html explains emacs' system for detecting coding systems. You can control it to some extent:
The variables auto-coding-alist, auto-coding-regexp-alist and auto-coding-functions are the strongest way to specify the coding system for certain patterns of file names, or for files containing certain patterns
You may have inadvertently disabled this feature:
However, there may be cases that you want to read escape sequences in a file as is. In such a case, you can set the variable inhibit-iso-escape-detection to non-nil. Then the code detection ignores any escape sequences, and never uses an ISO-2022 encoding. The result is that all escape sequences become visible in the buffer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With