Blockquote
echo ‘< meta charset=“utf-8” >’;
$French_string=‘pensée’;
$French_string=substr($French_string, 1);
echo $French_string;
I have the code above. and it produces the following
Blockquote
ensée
if I remove the meta charset=“utf-8” in the above, the result output “ensée” will be broken like the below.
Blockquote ens챕e
I like to remove the meta charset=“utf-8”. and I like to use “utf8” in the line only instead of influencing all lines in the page.
The would-be code below doesn’t work correctly, but it, i hope, shows what I want.
Blockquote
$French_string=‘pensée’;
$French_string=substr($French_string, 1. ‘utf-8’);
echo $French_string;
How can I make it produce “ensée” without broken character with removing “<;meta charset=“utf-8”>” in the head of the code?