I have an issue in my php code.
I tried to type Chinese character in VScode and echo to Chrome website.
But my Chinese character turn into garbled on Chrome.
Already defined header - charset=utf8 even charset=utf8mb4, but it still in vain.
Is there any ways could debug this issue?
BTW, I use MAMP.
<?php
// header("Content-Type:text/html; charset=utf8mb4");
header('Content-Type:text/html; charset=utf8');
echo '這是中文 utf-8';
?>