Skip to main content
Level 2
Feb 3, 2022 12:15 PM UTC
Solved

Using Q code of emoji in Subject-line cause issue in gmail

Hi Guys,

I used an emoji in our subject line, using Q-code (after reading Stanford's blog).
The emoji is rendering properly in all email clients, however, in Gmail mobile, it is adding extra space in the subject line.
See the below example:
 

 


I am using the below code in the subject line
=?UTF-8?Q?=F0=9F=99=8C?= NEW! Master's in Information Technology


Anyone has experienced this before? please let me know a way aound.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Feb 8, 2022 2:26 AM UTC

Only put characters that require Q-encoding between opening =?UTF-8?Q? and closing ?= sequences (i.e. only the emoji and the apostrophe).

 

4 replies

SanfordWhiteman
User Group Leader
User Group Leader
Feb 3, 2022 8:54 PM UTC

I am using the below code in the subject line

=?UTF-8?Q?=F0=9F=99=8C?= NEW! Master's in Information Technology


I don’t think you are. 🙂

 

I think that single straight quote is actually a curly quote, i.e. apostrophe. Which means it too needs to be Q-encoded. If you have one manually Q-encoded non-ASCII character, they all need to be manually encoded or Marketo... reacts poorly. Apostrophes are not allowed without encoding.

Translate
Level 2
Feb 7, 2022 1:17 PM UTC

Hi @sanfordwhiteman ,

I have encoded the curly apostrophe in the subject line (=?UTF-8?Q?=F0=9F=99=8C NEW! Master=E2=80=99s in Information Technology?=) attached a screenshot of the preview also. Still, I can see the same output in Gmail mobile


I also tried removing the apostrophe altogether. 

Thanks!

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Feb 8, 2022 2:26 AM UTC

Only put characters that require Q-encoding between opening =?UTF-8?Q? and closing ?= sequences (i.e. only the emoji and the apostrophe).

 

Translate