Bug 4676

Summary: claws-mail-4.1.1: incorrect html decoding
Product: Claws Mail Reporter: Yoric C° <yoric-k>
Component: OtherAssignee: users
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 4.1.1   
Hardware: PC   
OS: Linux   
Attachments: raw-body letter
false decoding
true decoding

Description Yoric C° 2023-05-25 10:34:00 UTC
Created attachment 2325 [details]
raw-body letter

Hello, sorry my bad English.
From the beginning of the message there are only dashes, then it is normally visible. I attach a screenshot of the incorrect and correct display and the letter itself.
Comment 1 Yoric C° 2023-05-25 10:35:03 UTC
Created attachment 2326 [details]
false decoding
Comment 2 Yoric C° 2023-05-25 10:35:43 UTC
Created attachment 2327 [details]
true decoding
Comment 3 Paul 2023-05-25 10:44:51 UTC
Looks like the part which is dashes does not use UTF-8 encoding as declared, but the rest does.
Comment 4 Paul 2023-05-25 10:50:51 UTC
When viewing the message, if you change /View/Decode/Auto-detect to /View/Decode/Quoted-printable you will see the dashs displayed correctly.

It /appears/ that the auto-detection of message in encoding is failing in Claws Mail, (but only for the opening section). However, I cannot rule out a problem with the message itself at this point.
Comment 5 Paul 2023-09-12 09:01:50 UTC
Sorry for the tardy response.

The problem is caused by invalid UTF-8 in the header of the html attachment:

  <!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE�ge" /><!--<![endif]-->
  <meta name="viewport" content="width�vice-width" />
Comment 6 Paul 2023-09-12 09:08:10 UTC
In fact, I should also have said that the paragraphs which are displayed as underscores/dashes also contain invalid UTF-8, hence the reason that those sections cannot be displayed