all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Garjola Dindi <garjola@garjola.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Incorrect rendering of accented characters in HTML e-mail (Gnus)
Date: Sun, 11 Oct 2020 13:27:55 +0200	[thread overview]
Message-ID: <87tuv1j938.fsf@pc-117-162.ovh.com> (raw)
In-Reply-To: m2mu0ti680.fsf@gandi.net


Sorry for the previous post. Long lines with multipart messed up the
nntp post. Here it goes again.

On Sun 11-Oct-2020 at 09:15:11 +02, Damien Collard
<damien.collard@distfp.net> wrote: 
> Hello,
>
> On Sat, Oct 10 2020, Garjola Dindi wrote:
>
>> I have also noticed that the I also have the same issue with non html
>> e-mails. I thought they were html, but they are just multipart.
>
> I have the same problem -- for some e-mails, not all of them.

I confirm that this does not happen with all e-mails. Only for messages
with a "multipart" enclosure but not all of them. A quick check tells me
that the problem appears with

,----
| < #multipart type=mixed>
| < #part type=text/plain format="flowed" charset="utf-8"
| disposition=inline nofile=yes> 
`----

and

,----
| < #multipart type=alternative>
| < #part type=text/plain format="flowed" charset="utf-8"
| disposition=inline nofile=yes> 
`----

But not for this one

,----
| < #multipart type=alternative>
| < #part type=text/plain charset="iso-8859-1" disposition=inline
| nofile=yes>
`----

So I guess that the problem is the utf-8 encoding.

>
> Using nnmaildir and offlineimap like you are.
>
> I *think* I started having this problem after upgrading to Emacs 27,
> but I'm not sure...
>

I am on emacs git master branch and I have been having the problem for
several months now, so this is coherent with your guess.

> I'll post here again if I find a solution. In the meantime, I have
> adopted your "dummy edit" function.

What I understand is that:
1. html is not the issue, but the multipart, since the text/plain part
   also gets incorrectly encoded
2. only happens when charset is utf-8 and not iso-8859-1
3. only happens with nnmaildir, since I have used nnimap to download the
   same messages from the same server and they are correctly displayed
   by Gnus
4. since the «dummy edit» works, this means that the issue is corrected
   when emacs opens the message in edit mode

Thanks for any feedback.
-- 




  parent reply	other threads:[~2020-10-11 11:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-10 13:34 Incorrect rendering of accented characters in HTML e-mail (Gnus) Garjola Dindi
2020-10-10 14:00 ` Eli Zaretskii
2020-10-10 14:35   ` Garjola Dindi
2020-10-10 14:44     ` Eli Zaretskii
2020-10-10 15:53       ` Garjola Dindi
2020-10-10 16:12         ` Eli Zaretskii
2020-10-10 20:10           ` Garjola Dindi
2020-10-11  7:15     ` Damien Collard
2020-10-11 10:27       ` Garjola Dindi
2020-10-11 11:27       ` Garjola Dindi [this message]
2020-10-11 15:26         ` Damien Collard
2020-10-12 12:01           ` Garjola Dindi
2021-01-21  7:52           ` Garjola Dindi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tuv1j938.fsf@pc-117-162.ovh.com \
    --to=garjola@garjola.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.