Closed znewman01 closed 3 years ago
Yeah I noticed that too but never really looked at most of time it was fine for me. I spent some time trying to understand if we should do some conversion and the conclusion is that apparently it is not needed. The Emacs internal format is derived from utf-8 which mean that the string loaded from the original email are likely already in utf-8. The only real issue is indeed that the meta tag is not updated appropriately. There may be an extra work to do if for some reason the Emacs user is not using utf-8 as its default encoding but I am not even sure.
I pushed a patch on the experimental branch which basically does what you do. Let me know if it works for you.
I noticed the same issue issue. I cannot comment on what the correct fix should be, but the experimental branch change fixes it for me.
Thanks for the response! I'll test out replacing my workaround with yours, bug me if I haven't updated a week from now
Your conclusion also sounds quite reasonable.
I have improved the patch, it should be more robust now.
Okay, had a chance to test this. It seems to tod the trick (both for previews and sending messages). Both the original message and the reply render correctly.
The more I think about it, the more I think "just make sure everything is utf8" is a reasonable behavior that does the right thing for 99% of what I need. I can't speak for anybody else, but this seems quite reasonable to me.
Thanks again for the quick response!
fix pushed to master.
Sorry for the unspecific issue title, but it's a little tricky to describe.
I use utf8 for everything. Org-mode works, org-msg mostly works.
org-msg-build
likes to grab the message I'm replying to and stick the new message onoriginal
charset=utf-8
but an HTML charset of the original message. Some mail clients I've tested display this correctly, but it's a weird thing to send.I've worked around this with the following hack (wrapping
org-msg-build
and fixing the content attribute:This means that the quoted reply is messed up due to an encoding mismatch.
I'm not sure what the right thing to do here is.