MozTW 討論區 https://forum.moztw.org/ |
|
用firefox流覽此網頁www.ciwr.de,只能看到源代碼。這個網頁用jsp編寫, https://forum.moztw.org/viewtopic.php?f=2&t=15893 |
第 1 頁 (共 1 頁) |
發表人: | kellewang [ 2006-10-14, 11:06 ] |
文章主題 : | 用firefox流覽此網頁www.ciwr.de,只能看到源代碼。這個網頁用jsp編寫, |
用firefox流覽此網頁www.ciwr.de,只能看到源代碼。這個網頁用jsp編寫,會不會是這方面的問題~~請幫忙看一下,謝謝!(用ie可以流覽的) |
發表人: | Dark Shenada [ 2006-10-14, 12:06 ] |
文章主題 : | |
以下為該站返回之http 代碼: HTTP/1.1 200 OK
Date: Sat, 14 Oct 2006 03:54:55 GMT Server: Apache/1.3.37 (Unix) Last-Modified: Thu, 12 Oct 2006 12:58:41 GMT ETag: "159c8cf-4ef6-452e3c01" Accept-Ranges: bytes Content-Length: 20214 Keep-Alive: timeout=2, max=200 Connection: Keep-Alive Content-Type: text/plain 令人訝異的是IE居然能顯示錯誤的MIME ?! 很明顯的Content-Type錯誤, 正確的應為text/html 請通知該站改正 ! |
發表人: | AlanLive [ 2006-10-14, 12:53 ] |
文章主題 : | |
將就一下用 IETab 看吧 畢竟世界上還是有很多不支援 Firefox 的網頁 |
發表人: | james [ 2006-10-15, 01:00 ] |
文章主題 : | |
Dark Shenada 寫: 以下為該站返回之http
代碼: HTTP/1.1 200 OK Date: Sat, 14 Oct 2006 03:54:55 GMT Server: Apache/1.3.37 (Unix) Last-Modified: Thu, 12 Oct 2006 12:58:41 GMT ETag: "159c8cf-4ef6-452e3c01" Accept-Ranges: bytes Content-Length: 20214 Keep-Alive: timeout=2, max=200 Connection: Keep-Alive Content-Type: text/plain 令人訝異的是IE居然能顯示錯誤的MIME ?! 很明顯的Content-Type錯誤, 正確的應為text/html 請通知該站改正 ! 自力救濟偏方:Force Content-Type |
發表人: | kellewang [ 2006-10-15, 22:08 ] |
文章主題 : | |
但我看到的代碼是<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />,这方面沒問題啊~~ 求助各位,再幫忙看看是否有什麼別的問題?如何改正?急。。。 |
發表人: | james [ 2006-10-16, 09:58 ] |
文章主題 : | |
kellewang 寫: 但我看到的代碼是<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />,这方面沒問題啊~~ 求助各位,再幫忙看看是否有什麼別的問題?如何改正?急。。。
是伺服端編碼設定的問題,若不方便建議站方修改,請安裝前篇提到的Force Content-Type。 1.於該套件選項中,新增一筆rule,設定好以下三個屬性: URL: http://www.ciwr.de/ga/index.jsp Old Content-Type: text/plain New Content-Type: text/html 2.清除瀏覽器快取後,重新載入該頁面。 |
發表人: | zerokong [ 2006-10-16, 14:29 ] |
文章主題 : | |
james 寫: kellewang 寫: 但我看到的代碼是<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />,这方面沒問題啊~~ 求助各位,再幫忙看看是否有什麼別的問題?如何改正?急。。。 是伺服端編碼設定的問題,若不方便建議站方修改,請安裝前篇提到的Force Content-Type。 1.於該套件選項中,新增一筆rule,設定好以下三個屬性: URL: http://www.ciwr.de/ga/index.jsp Old Content-Type: text/plain New Content-Type: html/plain 2.清除瀏覽器快取後,重新載入該頁面。 New Content-Type: 不是 text/html 嗎? |
發表人: | zerokong [ 2006-10-16, 14:30 ] |
文章主題 : | |
kellewang 寫: 但我看到的代碼是<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />,这方面沒問題啊~~ 求助各位,再幫忙看看是否有什麼別的問題?如何改正?急。。。
用右鍵看 page info 就可以知道該站的 content-type 是什麼 明顯地.. 該網站用錯了 text/plain |
發表人: | james [ 2006-10-16, 22:08 ] |
文章主題 : | |
zerokong 寫: james 寫: kellewang 寫: 但我看到的代碼是<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />,这方面沒問題啊~~ 求助各位,再幫忙看看是否有什麼別的問題?如何改正?急。。。 是伺服端編碼設定的問題,若不方便建議站方修改,請安裝前篇提到的Force Content-Type。 1.於該套件選項中,新增一筆rule,設定好以下三個屬性: URL: http://www.ciwr.de/ga/index.jsp Old Content-Type: text/plain New Content-Type: html/plain 2.清除瀏覽器快取後,重新載入該頁面。 New Content-Type: 不是 text/html 嗎? 抱歉,沒留意key錯了。確實應該是text/html,多謝先進指正。 (為免誤導,已修正原文) |
發表人: | kellewang [ 2006-10-17, 13:44 ] |
文章主題 : | |
谢谢~~ |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |