I've gotten complaints that the "Swedish characters" (ä, å, ö) are getting corrupted when I send e-mail through Hotmail. They show up as E4, E5 and F6 instead. The e-mail itself says charset=iso-8859-1. And my characters should work with that encoding.
Any ideas why my characters get messed up and how I can prevent this?
Best Answer
The character set might very well be ISO 8859-1, still the email itself might be encoded as well. I guess you would find
Content-Transfer-Encoding: quoted-printable
in the source of message. And I expect you to see lots of equals-signs as well, like=E4
,=E5
and=E6
, and equal-signs at the end of auto-wrapped lines?In ISO 8859-1, E4 is indeed the hexadecimal value for ä, E5 is å and F6 is ö. In quoted-printable those are encoded as
=E4
,=E5
and=E6
†. It seems that the email client of the recipient is not decoding properly. Hence:Do all recipients complain, or is it always the same few people?
Can you show us the source of a very small test message?
Can you configure Hotmail to always use Unicode (or UTF-8 encoding) instead?
Accept-Charset
header), or even for different languages...?† In UTF-8, ä, å and ö encode to hexadecimal C3A4, C3A5 and C3B6. These show as ä, Ã¥ and ö when not decoded properly. Or, in quoted-printable this will be
=C3=A4
,=C3=A5
and=C3=B6
. So, using Unicode (more specifically: UTF-8) will slightly increase the length of the message, but might save you from trouble, especially when mixing with other Unicode characters.