Stripping UTF codes/emojis in subject | Community
Skip to main content
Travis_Schwartz
New Participant
February 6, 2020
Solved

Stripping UTF codes/emojis in subject

  • February 6, 2020
  • 2 replies
  • 7069 views

I need help.

 

In the past, I had used converters to program emojis into the subjects of my emails.

 

For example, I've used these converters in the past:

And they worked wonderfully.

 

Now the email subject is displaying the UTF code when I send instead of the emoji, or clear box. Has something changed? Is this not supported anymore?

Best answer by SanfordWhiteman

Those characters are not ASCII, so they should also be Q-encoded.

2 replies

Travis_Schwartz
New Participant
February 6, 2020

An update... apparently using an en-, or em-dash in the subject line causes the emoji to not render. I don't know why, but those two marks specifically cause the code to display instead of the emoji.

 

Hyphen works:

en-dash doesn't:

em-dash doesn't:

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 6, 2020

Those characters are not ASCII, so they should also be Q-encoded.

Travis_Schwartz
New Participant
February 6, 2020

Is there a reason that the dash would display/render when it isn't coded, yet it would show the code instead of the emoji that was q-encoded?

to me, it feels like it should render the emoji and the dash space be blank because it wasn't coded.

SanfordWhiteman
New Participant
February 6, 2020

Have you tried putting the output of those converters (the Q-encoded output) into a Velocity token, then using that {{my.token}} as the Subject? Velocity tokens keep original formatting, for the most part, unlike other tokens or direct text entry.

 

P.S. Just to avoid confusion, you wouldn't be seeing "UTF-8" (which is a binary encoding) but perhaps are seeing partial Q encoding (which is an ASCII encoding of UTF-8) because Marketo is truncating something.