Bug 505128

Summary: Wrong charset sent with mails by default.
Product: [Applications] kmail2 Reporter: Frédéric CUIF <fc>
Component: composerAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.24.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frédéric CUIF 2025-06-02 13:11:38 UTC
SUMMARY

Wrong charset sent with mail by default.
The HTML part of the mail declares <meta charset=“UTF-8”> in its code, but the MIME explicitly defines charset=“iso-8859-1”, which overrides the meta tag
Subject headers mix encodings (=?ISO-8859-1?Q? and =?UTF-8?B?), which creates conflicts with Microsoft serveurs.
Sequences such as =E8 (é in ISO-8859-1) are not decodable in UTF-8, hence the “�” displayed by the recipient.
Options by default in kmail 2 selects : us-ascii, 8859-1, UTF-8, UTF-8 (locale) 


STEPS TO REPRODUCE
1. delete all charset except UTF-8
2 or modify headers with the tool in kmail and set UTF-8 un field filled with "charset"

OBSERVED RESULT
All mentions to 8859-1 has disappeared in headers

EXPECTED RESULT

Every client can read properly accents (like =E8)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  opensuse leap 15.6
KDE Plasma Version: Version 5.115.0
KDE Frameworks Version: 
Qt Version: Version 5.15.12 (Compilé avec 5.15.12)
Kontact Version 5.24.5 (23.08.5)
ADDITIONAL INFORMATION