PHP输出中文乱码

一、源代码

  
  
  
123  
  
  
  
PHP 很有趣!";  
echo "Hello world!
"; echo "我计划学习 PHP!
"; echo "这段话", "由", "多个", "字符串", "串接而成。"; ?>

二、修改后

  
  
  
123  
  
  
  
PHP 很有趣!";  
echo "Hello world!
"; echo "我计划学习 PHP!
"; echo "这段话", "由", "多个", "字符串", "串接而成。"; ?>

三、注意

源文件编码修改为UTF-8编码

你可能感兴趣的:(PHP输出中文乱码)