I have a word with a special character in it that does not display properly in the subject line of an email (via mail()).
The word is O’Conner and the special character is ’
"as is" the word appears as O’Conner
in the subject line of the incoming email message.
When I use html_entities_decode()the word appears as O’Conner
in the subject line of the incoming email message.
When I use mb_encode_mimeheader("O’Conner", "UTF-8", "Q") the word appears as O’Conner
in the subject line of the incoming email message.
Is there a way to get the word to appear is it should?