In GNU Emacs, you see the effect of the coding: directive in the Emacs status line. Just try the attached file, it will indicate "R" for KOI8-R. Not sure about XEmacs.
Cool! It worked for me in Emacs, but not in XEmacs. Oh well.
--Guido van Rossum (home page: http://www.python.org/~guido/)