To: test@example.com From: test@example.com Subject: plaintext + HMTL, both with a bad charset Message-ID: Date: Sat, 30 Dec 2017 19:31:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Thunderbird/59.0a1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------FAB286B8794CC63C0A0FD1BB" This is a multi-part message in MIME format. --------------FAB286B8794CC63C0A0FD1BB Content-Type: text/plain; charset="bad-charset" Content-Transfer-Encoding: quoted-printable Despite the bad charset we can find the search term Mätterhorn. Note that the umlaut is encoded in windows-1252. --------------FAB286B8794CC63C0A0FD1BB Content-Type: text/html; charset="bad-charset" Content-Transfer-Encoding: quoted-printable Despite the bad charset we can find the search term Matterhörn. Note that the umlaut is encoded in UTF-8. --------------FAB286B8794CC63C0A0FD1BB--