読者です 読者をやめる 読者になる 読者になる

LINK ELEMENT charset

scriptタグにcharset指定出来るのはよく知られています.
スタイルシートを読み込んだりするlinkタグでもcharset指定が出来たんですね.

<script type="text/javascript" src="hoge.js" charset="UTF-8"></script>
<script type="text/javascript" src="foo.js" charset="Shift_JIS"></script>
<!-- script statements, which may include CDATA sections -->
<!ELEMENT script (#PCDATA)>
<!ATTLIST script
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #REQUIRED
  language    CDATA          #IMPLIED
  src         %URI;          #IMPLIED
  defer       (defer)        #IMPLIED
  xml:space   (preserve)     #FIXED 'preserve'
  >
<link rel="stylesheet" href="hoge.css" type="text/css" charset="UTF-8" />
<link rel="stylesheet" href="foo.css" type="text/css" charset="Shift_JIS">
<!ELEMENT link EMPTY>
<!ATTLIST link
  %attrs;
  charset     %Charset;      #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  type        %ContentType;  #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  media       %MediaDesc;    #IMPLIED
  target      %FrameTarget;  #IMPLIED
  >