Blog of King Software

Learn online with us in simple steps.

How to prevent  appearing in email php?

Created by Bhavesh Gohil & Faiyaz Patel on Date: 08/04/2023

 is Appearing before special character or space.

How-to-prevent-Â appearing-in-email-php

 is Appearing before special character or space In Email because character unicod is not set in header of email.


To fix this error, set charset="utf-8" in header.

How-to-prevent-Â appearing-in-email-php

UTF-8 can represent any character in the Unicode standard. A character in UTF8 can be from 1 to 4 bytes long. UTF-8 is backwards compatible with ASCII. UTF-8 is the preferred encoding for e-mail and web pages.

How-to-prevent-Â appearing-in-email-php