I have a code like below
header('Content-Type: text/plain; charset=UTF-8');
echo 'Welcome to Loréal Website';
When I try to print this content in browser it coming é in Loréal is deformed.
How to solve this issue ?
Thanks for Reply
I have a code like below
header('Content-Type: text/plain; charset=UTF-8');
echo 'Welcome to Loréal Website';
When I try to print this content in browser it coming é in Loréal is deformed.
How to solve this issue ?
Thanks for Reply
Check that your browser is configured with UTF-8 Encoding.
Usually under View-> Encoding -> UTF-8
Configure the editor you are using to write the PHP to save in UTF-8.
The problem is because you are claiming the data is UTF-8 when it isn't.
Please be sure the php file you have created is in utf8 charset. Also check if utf8 encoding is supported/configured by your web server.
See this link in case you have apache https://stackoverflow.com/a/913885/1716962