Sometimes it is useful to examine an existing buffer or string as multibyte when it was unibyte, or vice versa.
nil
, the buffer becomes multibyte. If multibyte
is nil
, the buffer becomes unibyte.
This function leaves the buffer contents unchanged when viewed as a sequence of bytes. As a consequence, it can change the contents viewed as characters; a sequence of two bytes which is treated as one character in multibyte representation will count as two characters in unibyte representation.
This function sets enable-multibyte-characters
to record which
representation is in use. It also adjusts various data in the buffer
(including overlays, text properties and markers) so that they cover the
same text as they did before.
If string is unibyte already, then the value is string itself.
If string is multibyte already, then the value is string itself.
Go to the first, previous, next, last section, table of contents.