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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4917</bug_id>
          
          <creation_ts>2007-08-07 05:38:44 +0000</creation_ts>
          <short_desc>charset detection in &lt;meta&gt; recognises only lower-case charset=</short_desc>
          <delta_ts>2007-12-19 05:53:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>0.8.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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="Olivier Thereaux">ot</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>igor.sol</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16075</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-08-07 05:38:44 +0000</bug_when>
    <thetext>Reporterd by Ernest Unrau
http://lists.w3.org/Archives/Public/www-validator/2007Aug/0053.html

OK:
  &lt;META HTTP-EQUIV=&quot;content-type&quot; CONTENT=&quot;text/html; charset=ISO-8859-1&quot;&gt;

NOT Recognised:
  &lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; CHARSET=ISO-8859-1&quot;&gt;


TODO:
 * check HTTP specification for case-sensitivity
   (I believe there is nothing mentioned precisely, but HTTP is case-sensitive)
 * make the validator&apos;s detection less strict
 * throw a warning if loose detection caught improper construct</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16172</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-08-16 23:24:21 +0000</bug_when>
    <thetext>*** Bug 4953 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16428</commentid>
    <comment_count>2</comment_count>
    <who name="Holger Th">herr.th</who>
    <bug_when>2007-09-08 17:05:48 +0000</bug_when>
    <thetext>This is true not only for charsets specified via the &lt;meta/&gt; element but as well for those specified within HTTP headers. (Content-Type: text/html; charset=utf-8 is fine, while Content-Type: text/html; Charset=utf-8 is not.) Hope this isnt too obvious to be pointed out here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16737</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-09-20 22:59:25 +0000</bug_when>
    <thetext>I reported a bug to LWP, arguing that this module, responsible for the parsing of headers, should make sure it normalizes the case:
http://rt.cpan.org/Public/Bug/Display.html?id=28713

The author of HTML::Encoding, which is used by the validator, actually thinks this is not LWP&apos;s responsibility and ack&apos;d the bug report:
http://lists.w3.org/Archives/Public/www-validator/2007Aug/0068.html
http://search.cpan.org/dist/HTML-Encoding/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18133</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-12-19 05:53:15 +0000</bug_when>
    <thetext>a new version of the HTML::Encoding library fixes this issue:
http://lists.w3.org/Archives/Public/www-validator/2007Dec/0006.html

tested on the dev server, I am updating the production service with the new library and closing this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>