国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

The code I wrote shows garbled characters in all Chinese characters on the WEB.
邦喬維
邦喬維 2017-10-08 16:47:29
0
3
1625

I installed PHPSTUDY and wrote the code with notepad. All the Chinese characters displayed are garbled. What control is not installed properly?

邦喬維
邦喬維

reply all(3)
鐘毅

Remember to change all pages, otherwise INCULDE specifically to include the utf8 sentence. Of course, if the modification is not completed, Chinese will not be displayed, only GBK text will be displayed.

蟲(chóng)兒飛

header('content-type:text/html;charset=utf-8');

邦喬維

<?php
//Declare variable $shouji
$shouji = 'Sell a kidney for an iPhone';
//Put $shouji in double quotes and then echo what is the effect? ?
$str = "Will $shouji be displayed?";
//Enter $str to try
echo $str;
?>

  • reply The WEB display is normal if the codes are all in English, but as soon as Chinese characters are added, garbled characters are displayed.
    邦喬維 author 2017-10-08 17:03:26
  • reply <?php header('content-type:text/html;charset=utf-8'); //聲明變量$shouji $shouji = '為了蘋果手機(jī)去賣腎'; //在雙引號(hào)中放$shouji 然后echo 一下是什么效果呢? $str = "$shouji 會(huì)不會(huì)顯示呢?"; //輸入$str試試 echo $str; ?> Add a header in front of the code to define the HTML. Just enter the encoding. You can try it.
    phpcn_u40019 author 2017-10-08 19:12:29
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template