PHP set encoding to UTF-8

Last updated on

To set the PHP page to UTF-8, you can modify the HTTP header with:

header('Content-Type: text/html; charset=utf-8');

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

Leave a reply

Your email address will not be published. Required fields are marked *