How add emoji to a subject line?

When I try to insert an emoji to a subject line it does not save in the campaign. Adding an HTML code of an emoji to the subject line does not help as the code is, apparently, escaped. Is there any way to add emojis?

@enivid It is a restriction of the mysql utf8 character set, which is used by phplist. That allows only a subset of all possible characters and excludes emojis and other symbols.

But emojis are encoded using UTF-8, so it does not explain the problem.

@enivid It is a mysql restriction. Its utf-8 character set does not include the full utf-8 character set. Just google to find further explanation.

I actually use this frequently with phplist

For instance I recently used (copy this in the subject field) :

=?utf-8?Q?YOUR_SUBJECT_HERE =C2=A0=F0=9F=8E=84?=
or
=?utf-8?q?YOUR_SUBJECT_HERE =F0=9F=92=A1?=
or
=?UTF-8?Q?YOUR_SUBJECT_HERE =F0=9F=94=A5?=
or
=?utf-8?Q?YOUR_SUBJECT_HERE =F0=9F=94=A5?= AND_MORE_TEXT

You should get the gist of it with these examples.
The icons in this case are shown at the back of the subject, in case of old email clients that don’t know what to do with it (not that I know of any)

also fyi: http://thisthingiscrazy.com/a-collection-of-email-subject-utf-8-images/

2 Likes

Wow! Thanks a lot! That really answers the question for me.

Sorry for reviving this, but if you’re on a Mac, you can also send yourself an email with the desired subject emojis, and when you receive your email, just hit Command-Option-U on your keyborad and copy the subject…

For example:
:tada: This Is A Test
comes back as:
=?utf-8?Q?=F0=9F=8E=89_This_Is_A_Test?=

which you can just copy-paste into PHPList
watch out that not all emojis can be read by all… best check compatibility first on a site like https://emojipedia.org

Hope this helps (sorry again for reviving)

1 Like

How can I add emoji that are not on this list

At the moment I like to use the hiking boot emoji in my email subject.

@borre phplist now supports emojis in the subject and content of a campaign. Just copy and paste the one that you want.
image

this sometimes works, but some emoji give me a square with a cross.

for example the red heart goes oke, but hiking boot and cowboy not
Same as below here:
hiking boot: :hiking_boot:
cowboy: :cowboy_hat_face:
red heart: :heart:

UPDATE: when I copy past the icons in this forum, it gives me a square with a cross.
after posting it, it shows oke.
Tried it in phplist, works the same, copy past goes square with cross, but the email shows all the icons in the subject.

UPDATE 2: I shows the subject with emoji in some browers,
for example hotmail.com (the webinterface, on a chrome browser) does not show the squares with a cross icons.
hotmail.com:

thunderbird browser:

As a matter of course I set all the database fields in any phplist database I work on to utf8mb4_unicode_ci Collation. So far that seems to ensure everything works as expected with emoji.

:mechanical_arm::robot:

@borre You seem to be copying/pasting images not the emoji characters. From this page Full Emoji List, v17.0 you need to copy from the Browser column, not the columns to the right.