Function: toggle-enable-multibyte-characters

toggle-enable-multibyte-characters is an interactive and byte-compiled function defined in mule-cmds.el.gz.

Signature

(toggle-enable-multibyte-characters &optional ARG)

Documentation

Change whether this buffer uses multibyte characters.

With ARG, use multibyte characters if the ARG is positive.

Note that this command does not convert the byte contents of the buffer; it only changes the way those bytes are interpreted. In general, therefore, this command *changes* the sequence of characters that the current buffer contains.

We suggest you avoid using this command unless you know what you are doing. If you use it by mistake, and the buffer is now displayed wrong, use this command again to toggle back to the right mode.

View in manual

Probably introduced at or before Emacs version 20.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/international/mule-cmds.el.gz
(defun toggle-enable-multibyte-characters (&optional arg)
  "Change whether this buffer uses multibyte characters.
With ARG, use multibyte characters if the ARG is positive.

Note that this command does not convert the byte contents of
the buffer; it only changes the way those bytes are interpreted.
In general, therefore, this command *changes* the sequence of
characters that the current buffer contains.

We suggest you avoid using this command unless you know what you are
doing.  If you use it by mistake, and the buffer is now displayed
wrong, use this command again to toggle back to the right mode."
  (interactive "P")
  (let ((new-flag
	 (if (null arg) (null enable-multibyte-characters)
	   (> (prefix-numeric-value arg) 0))))
    (set-buffer-multibyte new-flag))
  (force-mode-line-update))