我想在PHP的形式像這樣送出去的值: -PHP - 形式值編碼
<input type="hidden" name="item_name" value="Car">
,我想指定的值是UTF-8 ...
我必須採取哪些措施?
Thanksalot!
我想在PHP的形式像這樣送出去的值: -PHP - 形式值編碼
<input type="hidden" name="item_name" value="Car">
,我想指定的值是UTF-8 ...
我必須採取哪些措施?
Thanksalot!
把這個在您的網頁的標題:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
這將告訴瀏覽器以UTF-8編碼提交的字符。
的<head>
標記後添加此行代碼
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
你必須,如果你設置爲把這個在你的腦袋標籤
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
中國字編碼... – Ham
在標題中,它不起作用嗎? –