hi everybody,
We use emojis in our subject line by UTF8 encoding them, e.g.
=?UTF-8?Q?Schon gewusst? =F0=9F=92=A1 Spannende Insights ?=
They work perfectly in all email apps and browsers, except apple email app.
Has anybody experienced that issue and found a solution for that?
Thank you & kind regards,
Elisabeth
Solved! Go to Solution.
The problem is your Q-encoding is wrong.
In a Q-encoded sequence, if you need a literal question mark ? character it needs to be encoded as =3F, since the question mark has (extremely) special meaning in Q. In addition — though this other error is tolerated by mail clients — spaces need to encoded as =20 or _.
Therefore a correct encoding is:
=?UTF-8?Q?Schon_gewusst=3F=F0=9F=92=A1_Spannende_Insights?=
or
=?UTF-8?Q?Schon=20gewusst=3F=F0=9F=92=A1=20Spannende=20Insights?=
However it isn’t necessary to encode anything but the emoji, since the rest of your Subject line is ASCII. This is far easier to read:
Schon gewusst? =?UTF-8?Q?=F0=9F=92=A1?= Spannende Insights
⚠️ This post has been edited by a moderator for relevance.
Most email clients support emojis in all the ways, IOS also supports them but should be above OS X 10.7 Lion, here is a great article for using emojis https://www.litmus.com/blog/emoji-support-in-email-can-your-subscribers-see-them/
Can you tell me the exact version of Apple Mail you’re testing on? And is this the Mac OS desktop and/or iOS version?
yes of course: Apple Mail, newest update on iPhone 12 Pro, iOS Version 16.5
The problem is your Q-encoding is wrong.
In a Q-encoded sequence, if you need a literal question mark ? character it needs to be encoded as =3F, since the question mark has (extremely) special meaning in Q. In addition — though this other error is tolerated by mail clients — spaces need to encoded as =20 or _.
Therefore a correct encoding is:
=?UTF-8?Q?Schon_gewusst=3F=F0=9F=92=A1_Spannende_Insights?=
or
=?UTF-8?Q?Schon=20gewusst=3F=F0=9F=92=A1=20Spannende=20Insights?=
However it isn’t necessary to encode anything but the emoji, since the rest of your Subject line is ASCII. This is far easier to read:
Schon gewusst? =?UTF-8?Q?=F0=9F=92=A1?= Spannende Insights