Hi, Hopefully, this new patch is a better fix. AFAIU, with this, the content of the temporary MIME buffer is preserved as unibyte (as it should?) and its content is encoded from a possibly multibyte buffer. FWIW, I did not used `insert-buffer-substring' anymore as this is using `string-make-unibyte' that does not do TRT.