回傳 JSON 的時後, 特別是有中文, 記得送 header(常忘記)...XD
header('Content-Type: text/plain; charset=utf-8');
或
header('Content-Type: application/json; charset=utf-8');
個人筆記, 記錄關於 系統、程式、新聞 與 日常生活 等資訊
回傳 JSON 的時後, 特別是有中文, 記得送 header(常忘記)...XD
header('Content-Type: text/plain; charset=utf-8');
或
header('Content-Type: application/json; charset=utf-8');