php - Why does email show accented characters as question marks?

321

If I have the following string in my MySQL database (FYI, Collation is utf8mb4_unicode_ci):

Bebé Elosúa Sierra

It displays fine on my site if I echo it back using htmlentities, but if I send an email via AmazonSES, it shows up (at least in Gmail) like this.

It shows in the body of the email as:

Beb? Elos?a Sierra

And more oddly, it shows in the subject of the email as:

Beb???????????? Elos????????????a Sierra

Is there anyway to prevent this, or is it something on Google/Gmail's end that I have no control over?

People are also looking for solutions to the problem: php - Declaring properties and variables in an efficient and readable way?

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.