On Tue, Aug 02, 2022 at 11:17:14PM +0700, Đoàn Trần Công Danh wrote: > On 2022-08-02 13:07:42+0200, Dennis Preiser <dp-m...@d--p.de> wrote: >> On Tue, Aug 02, 2022 at 12:39:06PM +0200, Bastian wrote: >> > Maybe some local vim/encoding issues on darwin? >> >> Maybe. Interestingly, if I change the subject via 's' before sending in >> mutt and replace the two replacement characters with 0x52a0 it works. > > I noticed that your email was send with Content-type's charset is > us-ascii and Kenichi's email is iso-2022-jp. > > Is it part of the problem? I.e. Editors think the text files is > an us-ascii or iso-2022-jp encoded file, and convert non-interpretable > characters to utf-8 replacement?
I don't think so. If the editor thinks the file is us-ascii, then it must not insert a UTF-8 replacement character. Furthermore, this only happens if the character in question is at the end of the subject. If it is at the beginning or somewhere in the middle of the subject everything is fine. In other words, if the subject consists of two 0x52a0 (Subject: 加加), the first one remains intact and the second one is replaced by the UTF-8 replacement character. Dennis