Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win10 Edge 瀏覽器網頁亂碼?群組原則強制設定 User Agent 字串為 MSIE 9.0 解決相容性問題

編輯:Win10 系統應用技巧

Win10 Edge 瀏覽部分舊版網站(特別是銀行、政府、企業內部系統)時出現亂碼、排版錯亂,主因為網站伺服器依 User Agent 字串判斷瀏覽器版本,誤判 Edge 為不支援的舊版 IE,回傳錯誤編碼頁面。解法:透過群組原則強制 Edge 發送 MSIE 9.0 User Agent 字串,誘騙網站以 IE9 相容模式回應。

設定步驟

  1. 按 Win+R 輸入 gpedit.msc 開啟群組原則編輯器。
  2. 依序展開:電腦設定 → 系統管理範本 → Windows 元件 → Internet Explorer → 自訂使用者代理程式字串。
  3. 雙擊「自訂使用者代理程式字串」,選擇「已啟用」。
  4. 在「選項」輸入框填入:MSIE 9.0,確定。
  5. 重新啟動 Edge 瀏覽器生效。

適用範圍:此設定同時影響 Edge 與 IE 模式。若僅特定網站有問題,建議改用 Edge 的「以 Internet Explorer 開啟」功能(右上角 ⋯ → 以 Internet Explorer 開啟),避免影響其他現代網站顯示。

Copyright © Windows教程網 All Rights Reserved