Variable: print-escape-nonascii

print-escape-nonascii is a variable defined in print.c.

Value

nil

Documentation

Non-nil means print unibyte non-ASCII chars in strings as \OOO.

(OOO is the octal representation of the character code.)
Only single-byte characters are affected, and only in prin1. When the output goes in a multibyte buffer, this feature is enabled regardless of the value of the variable.

View in manual

Probably introduced at or before Emacs version 20.3.

Source Code

// Defined in /usr/src/emacs/src/print.c
  DEFVAR_BOOL ("print-escape-nonascii", print_escape_nonascii,
	       doc: /* Non-nil means print unibyte non-ASCII chars in strings as \\OOO.
\(OOO is the octal representation of the character code.)