<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>10155</bug_id>
          
          <creation_ts>2006-07-29 15:07:11 -0700</creation_ts>
          <short_desc>CSS2: @charset is not supported</short_desc>
          <delta_ts>2006-09-01 12:31:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>419.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://amd.co.at/pat/webkit/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrik Weiskircher">pat</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51124</commentid>
    <comment_count>0</comment_count>
    <who name="Patrik Weiskircher">pat</who>
    <bug_when>2006-07-29 15:07:11 -0700</bug_when>
    <thetext>If you set the charset encoding of a external CSS file using either one of the following methods, it gets ignored:
@charset in the css file
Content-Type: text/css; charset=utf-8 or
Content-Encoding: utf-8

As soon as you specify the charset in the &lt;link&gt; itself, it works as expected.

Please see the above mentioned URL.
With nonworking.html, the &lt;link&gt; does not specify the charset, but test.css starts with &apos;@charset &quot;utf-8&quot;;&apos; and the Content-Type is set to &apos;text/css; charset=utf-8&apos;.
working.html references the same test.css, but specifies the charset in the &lt;link&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51137</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-30 00:00:57 -0700</bug_when>
    <thetext>Specifying a charset in Content-Type works in current WebKit, you can verify this with a nightly build from &lt;http://nightly.webkit.org&gt;.

Do any browsers honor a charset specified in the Content-Encoding header? The only registered options are gzip, compress, deflate and identity: &lt;http://www.iana.org/assignments/http-parameters&gt;.

Spec for @charset: &lt;http://www.w3.org/TR/CSS21/syndata.html#x60&gt;. Renaming the bug to track this single issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54575</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-09-01 12:31:07 -0700</bug_when>
    <thetext>Fixed in bug 5620, r16175.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>