How to solve character encoding issues in subject with emoji and special characters?

Avatar

Avatar

C_M_G

Avatar

C_M_G

C_M_G

03-11-2017

We're trying to send out an email with a fire emoji, represented by =?UTF-8?Q?=F0=9F=94=A5?=


It works fine for the most part, until an email contains higher ascii such as © or ó, at which point it starts trying to mix encodings and set the rest of the title as windows-1252 according to the header output, at which point you see the above =?UTF-8?...etc string printed out in the subject.

We're importing the data as UTF-8, and even tried the "Force Encoding" setting in the master template, but it still generates a broken, mixed-encoding title when it hits higher ascii.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

adomas_galdikas

Avatar

adomas_galdikas

adomas_galdikas

08-12-2017

Hi,

You have to encode all non-english characters as well.

For example:

Å - =?UTF-8?Q?=C3=85?=

Ø - =?UTF-8?Q?=C3=98?=

Æ - =?UTF-8?Q?=C3=86?=

Ä - =?UTF-8?Q?=C3=84?=

å - =?UTF-8?Q?=C3=A5?=

ø - =?UTF-8?Q?=C3=B8?=

æ - =?UTF-8?Q?=C3=A6?=

ä - =?UTF-8?Q?=C3=A4?=

Subject: "K=?UTF-8?Q?=C3=B8?=benhavn =?UTF-8?Q?=F0=9F=98=81?= "

Will be visible as "København (emoji_is_here) "

Answers (11)

Answers (11)

Avatar

Avatar

pierrel9494421

Avatar

pierrel9494421

pierrel9494421

08-12-2017

Thanks !

For those who need a Unicode/utf-8 conversion table : Unicode/UTF-8-character table

Avatar

Avatar

Jean-Serge_Biro

MVP

Avatar

Jean-Serge_Biro

MVP

Jean-Serge_Biro
MVP

16-04-2018

Dear all,

More and more posts/tickets in the Adobe Campaign community, the LinkedIn groups, questions among AC users in other locations,  regarding emojis management issues...

It is time to ask to Adobe an effort to resolve this situation, as it is done in other competitors products.

So, please vote for this suggestion:

Emojis in mail object - Ease the use


Regards.
Jean-Serge

Avatar

Avatar

sangramg5524113

Avatar

sangramg5524113

sangramg5524113

16-04-2018

I'm unable to add space between words, how can i achieve it.

Avatar

Avatar

sangramg5524113

Avatar

sangramg5524113

sangramg5524113

16-04-2018

How did you manage to give space after each word ?

Avatar

Avatar

C_M_G

Avatar

C_M_G

C_M_G

08-12-2017

Hm; then I guess the question is, does Adobe have a function that will apply that encoding? The data we're using in the title is not static, but from a resource we have.

Avatar

Avatar

pierrel9494421

Avatar

pierrel9494421

pierrel9494421

08-12-2017

Hi,

Does anyone find a solution to that problem ?

Best regards,

Pierre

Avatar

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239
florentlb

16-11-2017

Hi,

I'm sorry I'm not sure of how to correct that. I'd recommend contacting our support team to have this investigated further and eventually be checked by our engineering team.

Let me know if you find a solution in the meantime.

Florent

Avatar

Avatar

C_M_G

Avatar

C_M_G

C_M_G

13-11-2017

Well that's a new one. Something's changed now, and even without a special character, it breaks.


The subject is now being UTF-8 encoded, which results in the emoji marker being encoded again, and so it decodes to the raw text of the =?UTF-8 stuff instead of the emoji as intended.

Example:

Subject: =?utf-8?B?PT9VVEYtOD9RPz1GMD05Rj05ND1BNT89wqBTbGlja2RlYWxzJw==?=

=?utf-8?B?IHRlc3QyQiBEZWFsczogV2F0Y2ggRG9ncyAoWGJveCBPbmUpIGF0IE1pYw==?=

=?utf-8?B?cm9zb2Z0IFN0b3Jl?=

Avatar

Avatar

C_M_G

Avatar

C_M_G

C_M_G

13-11-2017

I just sent another test email to grab some screenshots:

Subject: =?UTF-8?Q?=F0=9F=94=A5?= Emoji Test 1

Result: https://i.imgur.com/D84v0UR.png

Subject: =?UTF-8?Q?=F0=9F=94=A5?= Émoji Test 2

Result: https://i.imgur.com/Q8Kgupo.png

Avatar

Avatar

C_M_G

Avatar

C_M_G

C_M_G

13-11-2017

Yes, I've seen that thread before; as you'll note, we're using the same method described there. However, we're encountering the same issue as the last comment in that thread that was never replied to.

It works fine until something like é or © shows up and then it all blows up. Something in Campaign is adding a bunch of windows-1252 (latin1) encoding markers to the subject and this causes the =?UTF-8 code to stop working and be displayed verbatim.

Avatar

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239
florentlb

13-11-2017

Hi,

Please have a look at the following thread, which to me seems close to your current question: how to use emoji in adobe campaign subject line?

Let me know if you need more information,

Florent