buffer coding system

Denis Dzyubenko <[email protected]>
Newsgroups gmane.emacs.xemacs.user.russian
Message-ID <[email protected]>
Присоединяюсь к поздравлениям с прошедшим праздником!

Как узнать текущую кодировку буфера, пробовал
buffer-file-coding-system, но она возвращает не совсем то что нужно -
например для буфера в utf-8 получаем

(coding-system-name buffer-file-coding-system)
utf-8-unix

а мне нужно "стандартное" название кодировки - "utf-8".

Это мне нужно чтобы вставить кодировку файла в атрибут encoding в
xml-документе.
-- 
Denis.

The easiest way for me to grow as a person is to surround
myself with people smarter than I am.
    --Unknown
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.