Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b25e2fb5
Commit
b25e2fb5
authored
Nov 27, 2000
by
Dave Love
Browse files
base64 tweaks
parent
902ae620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
lispref/text.texi
lispref/text.texi
+12
-5
No files found.
lispref/text.texi
View file @
b25e2fb5
...
...
@@ -3508,13 +3508,18 @@ all markers unrelocated.
@cindex base 64 encoding
Base 64 code is used in email to encode a sequence of 8-bit bytes as a
longer sequence of @sc{ascii} graphic characters. This section
describes the functions for converting to and from this code.
longer sequence of @sc{ascii} graphic characters. It is defined in RFC
2045. This section describes the functions for converting to and from
this code.
@defun base64-encode-region beg end &optional no-line-break
@tindex base64-encode-region
This function converts the region from @var{beg} to @var{end}
into base 64 code. It returns the length of the encoded text.
This function converts the region from @var{beg} to @var{end} into base
64 code. It returns the length of the encoded text. An error is
signaled if a character in the region is multibyte, i.e.@: in a
multibyte buffer the region must contain only characters from the
charsets @code{ascii}, @code{eight-bit-control} and
@code{eight-bit-graphic}.
Normally, this function inserts newline characters into the encoded
text, to avoid overlong lines. However, if the optional argument
...
...
@@ -3525,7 +3530,9 @@ the output is just one long line.
@defun base64-encode-string string &optional no-line-break
@tindex base64-encode-string
This function converts the string @var{string} into base 64 code. It
returns a string containing the encoded text.
returns a string containing the encoded text. As for
@code{base64-encode-region}, an error is signaled if a character in the
string is multibyte.
Normally, this function inserts newline characters into the encoded
text, to avoid overlong lines. However, if the optional argument
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment