パスワードを忘れた? アカウント作成
この議論は賞味期限が切れたので、アーカイブ化されています。 新たにコメントを付けることはできません。

12月15日付けWindowsUpdate後、IEで文字化け多発中な模様」記事へのコメント

  • ISO_2022_JP は論外だが、基本的にコンテンツに合ったHTTP応答ヘッダーのContent-Typeフィールドのcharsetを指定していないのがいけない。HTTP 1.1辺りではcharsetパラメータはtext/htmlとかに必須でなかったかな?

    * 今までいい加減に済ませていたHTTP応答ヘッダーのツケが出てきた。
    * 今まで勝手に中身を判断する悪しき挙動に身を染めていたIEがまっとうになろうとして失敗した。

    と、いうあたりだろうな。
    • by Anonymous Coward on 2010年12月19日 14時16分 (#1876390)

      The "charset" parameter is used with some media types to define the
      character set (section 3.4) of the data. When no explicit charset
      parameter is provided by the sender, media subtypes of the "text"
      type are defined to have a default charset value of "ISO-8859-1" when
      received via HTTP. Data in character sets other than "ISO-8859-1" or
      its subsets MUST be labeled with an appropriate charset value. See
      section 3.4.1 for compatibility problems.

      専用のサーバーならともかくこの要求無理だろ

      親コメント
      • by ruto (17678) on 2010年12月21日 0時22分 (#1877211) 日記

        しかし一方でHTML4.01のSpecifying the character encoding [w3.org]ではこう書かれています。

        The HTTP protocol ([RFC2616] [w3.org], section 3.7.1) mentions ISO-8859-1 as a default character encoding when the "charset" parameter is absent from the "Content-Type" header field. In practice, this recommendation has proved useless because some servers don't allow a "charset" parameter to be sent, and others may not be configured to send the parameter. Therefore, user agents must not assume any default value for the "charset" parameter.

        つまり、charsetが省略されていた場合は、ユーザエージェントはデフォルト値を仮定してはならない(MUST NOT。HTML 4.01ではMUST NOT等は小文字で表記すると規定されている)としています。

        親コメント
      • by Anonymous Coward

        「専用のサーバー」って、何を指してるか不明だが、Apacheで .htaccess とかで許可されてれば全然難しいことではない。

        知ってるか、気にしてるか、やる気があるか、のレベルの問題。

        • by Anonymous Coward

          許可していないレンタルサーバが蔓延してるけどね。

        • by Anonymous Coward

          .htaccessいじれません、勝手に特定のcharsetでヘッダを送ります。そんな仕様のところもあるんですよね。
          そもそもサーバーサイドでcgiとかごにょごにょできない、単なるホームページスペースかもしれません。

          んなん文句言って引っ越せ!となるけれど。個人用途でないといろいろと手続きがねぇ
          # 日本のgeocitiesのeuc-jp固定は結構有名でした

物事のやり方は一つではない -- Perlな人

処理中...