批踢踢實業坊
›
看板
Programming
關於我們
聯絡資訊
返回看板
作者
gpmm (銀色)
看板
Programming
標題
Re: [問題] 似乎是編碼的問題?
時間
Tue Nov 6 11:33:37 2007
※ 引述《LisaShie (小麻)》之銘言:
: 請問各位
: 我的php到html檔都是存utf-8
: 不過我用 javascript的alert出來的中文
: 就會變成亂碼
: 不知道該怎麼解決呢?
如果 js alert 在 html head 之前, 可以先 echo 出 content-type 的 meta。 這樣就能正常 alert 了。 --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.57.130.248