|Emacs ignores the default coding system when opening files with an .arc extension, and thus fails to display Unicode characters. This appears to be because it regards .arc files as archives. How can I override this?|
When I open an .arc file, C-h C <enter> indicates that the coding system for the buffer is "no-conversion-multibyte". This is also indicated by an equal sign at the head of the modeline. Since I have the default coding system set to utf-8, changing the file extension from .arc to something else (e.g. .arx) is sufficient to make Unicode characters appear. I can also force an .arc file buffer into utf-8 by invoking revert-buffer-with-coding-system manually, but this is tedious.
The following line in my .emacs sounds like it should help, but doesn't:
Several of you must have figured this out long ago. What should I do?
(modify-coding-system-alist 'file "\\.arc$" 'utf-8)
Edit: Ah, here's the solution:
I'll post the links where I found this in a comment below, so they'll be clickable.
(push '("\\.arc$" . utf-8) auto-coding-alist)