2

I have a subject line with the en dash HTML code: –

It is not rendering as the actual en dash symbol when the email is sent. The subject line is being pulled from a look up table/DE and in the email subject line properties we are using AMPScript %%=v(@SL2)=%%

Has anyone experienced en dashes not rendering?

1

The Subject field is not HTML, and cannot use HTML entities. If you want to embed a character outside of the lowest 127 characters of Unicode (the lower half of ASCII), you need to "quote" those characters. So, your en dash would have to be encoded, and it would look like this:

=?utf-8?Q?=E2=80=93?=

Where the general format is =?A?B?C?=, where A is the encoding to use, B is the letter Q for quoted-printable, or B for base64, and C is the content that is encoded. The hex value for en dash is E28093, so we have to quote each pair with an equals sign: =E2=80=93.

This is all pretty compilcated, so it's rather rarely used, but if you're interested in learning more, you can RFC 1342 for more information.

Please note that this is not a limitation of Salesforce or Marketing Cloud, but instead is a limitation of the email protocol SMTP, invented in 1982, before the invention of the Internet, and considering the limitations of 7-bit computing systems, which is why it's particularly limited in what it can accept.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.