Re: buffer coding system

[email protected] (Nickolay Pakoulin)
Newsgroups gmane.emacs.xemacs.user.russian
Message-ID <[email protected]>
Привет!

Базовую кодовую систему возвращает `coding-system-base'

Пример:

(coding-system-name (coding-system-base 'utf-8-unix))

возвращает utf-8.

Возможно, это то, что тебе надо.

Коля.

intro: "DD" == Denis Dzyubenko <[email protected]> writes:

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

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

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

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

  DD> The easiest way for me to grow as a person is to surround myself with
  DD> 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.