before searching.
(quoted-printable-encode-region): Use multibyte-char-to-unibyte.
encode lines starting with \"From\"."
(interactive "r")
(save-excursion
+ (goto-char from)
+ ;; Fixme: This doesn't get eight-bit characters in multibyte buffers.
(if (re-search-forward "[^\x0-\xff]" to t)
(error "Multibyte character in QP encoding region")))
(unless class
(not (eobp)))
(insert
(prog1
- (format "=%02X" (char-after))
+ ;; To unibyte in case of eight-bit-{control,graphics}
+ (format "=%02X" (multibyte-char-to-unibyte (char-after)))
(delete-char 1))))
;; Encode white space at the end of lines.
(goto-char (point-min))