1. 程式人生 > >php 、html網頁解決亂碼問題(設定utf-8)

php 、html網頁解決亂碼問題(設定utf-8)

<?php之後或者在 <body之後加入如下程式碼:

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

或者

<meta charset="utf-8">

即可解決問題。