Home  >  Q&A  >  body text

How to solve garbled characters

<?php
//Declare string variable $zhifu

$zhifu = 'There was once a fucking love in front of me, and I cherished it. I regretted it when I got it. If you have to add three words in front of this love, I would like to say three words: Gunduzi';

//You can put it in the directory specified by XAMPP and create a new file called str.php . Then try visiting http://127.0.0.1/str.php. Will this sentence be displayed?

echo $zhifu;

?>

Xuanju粡chain夋搷锬嬬殑鐖bian叏鎽嗹湪洴戦戦涓嶏紴戠彽鎯滀 Jane 銆 effect 紴戝缑鍒 dressed up 鮑镞跺€欐堠镒緷埌钖庢倲銮strong 銆effect鏋仈潪窸个杩欐鐖 differential 倏铉剉锷銱笂涓€娈典笁涓The most beautiful thing

青柠จุ๊บ青柠จุ๊บ2071 days ago1280

reply all(2)I'll reply

  • 韦小宝

    韦小宝2019-01-23 14:04:09

    Add

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


    to the head

    reply
    0
  • Cancelreply