How can I setup Emacs to be able to display the content of an old file that contains non-ASCII 8-bit characters that we encoded using a code-page my system does not seem to support?
I have a file that has most probably been written in Germany in the days of 8-bit extended ASCII and Emacs does not display those characters properly. I was thinking I code tell Emacs to try various encoding and see if text would show up. Encoding like Windows 1250 code-page or some others.
Can this be done in Emacs?
iso-8859-1
.C-x RET c iso8859-1 RET C-x C-f <filename> RET
should open it with that coding system. The coding system is indicated on the mode line at left as1:
.With some experience, you can tell what coding system was used, when you open the file withM-x find-file literally
or withod -c
from the command line and looking at the non-ascii chars.universal-coding-system-argument
command into an answer I'll accept it.