InternetExplorerで文字化けする場合….問題解決
※以下はWebサーバーソフトがApacheであるという前提です。
「Internet Explorer 用の累積的なセキュリティ更新プログラム (2416400)」導入後
自社サイトが文字化けしてしまった場合の対処です。
これはNetscape4.xのころにもあった問題です。
文字化けする条件は、
METAでISO-2022-jpを記述しているだけで
サーバーのHTTPヘッダーにISO-2022-JPという返答がない場合に起きます。
まずの対策としてはISO-2022-JP文書をShift_JISに変換することで対処できます。
.htaccessファイルで「AddDefaultCharset Shift_JIS」を記述しhttpd.confが
AllowOverride ALLになっていれば治ります。
httpd.confのcharset設定と公開している文書のcharsetが違うのなら
「AddDefaultCharset off」でも良いですね。
根本的にはApacheのDefaultCharsetで指定することで回避できます。
HTTPヘッダに「Content-Type: text/html;charset=iso-2022-jp」を入れるのです。
もっと速やかな場当たり的対処は
文字化けしたページを見ている状態で再読み込み(F5キーを押す)することです。
======2011年2月10日追記。
MS11-003: Cumulative security update for Internet Explorer
http://support.microsoft.com/kb/2482017
This update resolves the Japanese Industrial Standard (JIS) encoding known issues that were caused by the release of security update 2416400 described in MS10-090. Customers who applied any of the workarounds that are listed in Knowledge Base articles 2416400 or 2467659 do not have to uninstall the workarounds before installing this update.
MS11-003適用にて解決するようです。(多謝! rt-100i MLメンバーの方)







