When an email message Subject contains both HTML special characters and
MIME Encoded (Quoted Printable) data, htmlspecialchars() is called
twice, breaking the output.
It is first called in sqimap_get_small_header_list() (imap_message.php),
then called in charset_decode() (i18n.php).
This breaks the output of the subject in the mailbox list.
I do not know why htmlspecialchars() is called from charset_decode(),
but removing it resolved this issue.
See attached patch.
Ampersand & S=E6rnorske tegn
Ampersand &amp; S=E6rnorske tegn
Another, but somewhat different issue:
Norwegian 8 bit characters, =C6=D8=C5 are not converted to their HTMLized
versions æ ø å.