2017-11-28 PHP javascript alert 亂碼問題 284 0 PHP javascript alert 亂碼問題 PHP 送 Header 告訴瀏覽器這頁是 UTF-8 編碼 <?php header("Content-Type:text/html; charset=utf-8"); ?> Notepad 轉換成 UTF-8 碼格式(檔首 BOM) 資料來源: http://blog.xuite.net/metafun/life/203344265-PHP%E4%BA%82%E7%A2%BC%E5%95%8F%E9%A1%8C%EF%BC%8CUTF-8%E4%BA%82%E7%A2%BC%E5%B8%B8%E8%A6%8B%E5%95%8F%E9%A1%8C%E5%B0%8F%E7%B5%90 https://scriptmarks.com/html-%E5%8F%8A-php-%E7%A8%8B%E5%BC%8F-utf-8-%E7%B7%A8%E7%A2%BC%E4%BA%82%E7%A2%BC%E8%AA%AA%E6%98%8E/ php 回首頁