<?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>162</bug_id>
          
          <creation_ts>2003-02-27 22:21:07 +0000</creation_ts>
          <short_desc>Localized reports have no charset parameter</short_desc>
          <delta_ts>2005-07-20 09:08:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>main pages/translations</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bj">bjoern</reporter>
          <assigned_to name="Philippe Le Hegaret">plh</assigned_to>
          <cc>ewexler</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>380</commentid>
    <comment_count>0</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2003-02-27 22:21:07 +0000</bug_when>
    <thetext>E.g.

HEAD /css-validator/validator?uri=http://www.w3.org HTTP/1.1
Host: jigsaw.w3.org
Accept-Language: de

returns

HTTP/1.1 200 OK
Cache-Control: no-cache
Date: Fri, 28 Feb 2003 03:20:28 GMT
Pragma: no-cache
Content-Length: 23776
Content-Language: de
Content-Type: text/html
Server: Jigsaw/2.2.0 W3C_CSS_Validator_JFouffa/2.0

The Content-Type header should specify a charset parameter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2461</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2004-10-06 01:32:36 +0000</bug_when>
    <thetext>The encoding decl seems to be properly set in the markup
[[
&lt;?xml version=&apos;1.0&apos; encoding=&apos;iso-8859-1&apos;?&gt;
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2472</commentid>
    <comment_count>2</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2004-10-06 02:29:13 +0000</bug_when>
    <thetext>The HTML Working Group resolved that user agents should not attempt to sniff 
for XHTML in text/html resources, the XML declaration is thus treated according 
to the rules in HTML 4.01 which is to consider it a processing instruction and 
thus ignore it. An encoding declaration in the &quot;XML declaration&quot; is not 
sufficient for text/html resources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2560</commentid>
    <comment_count>3</comment_count>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2004-10-27 11:16:55 +0000</bug_when>
    <thetext>An encoding declaration in the XML declaration is sub-optimal even for XHTML. 

The utility of a proper HTTP parameter is not something to toss away so lightly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4295</commentid>
    <comment_count>4</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-06-19 19:59:44 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; HEAD /css-validator/validator?uri=http://www.w3.org HTTP/1.1
&gt; Host: jigsaw.w3.org
&gt; Accept-Language: de

This with GET now returns

HTTP/1.1 200 OK
Cache-Control: no-cache
Date: Sun, 19 Jun 2005 19:47:33 GMT
Pragma: no-cache
Transfer-Encoding: chunked
Content-Language: de
Content-Type: text/html
Server: Jigsaw/2.2.5

400
&lt;?xml version=&apos;1.0&apos; encoding=&apos;iso-8859-1&apos;?&gt;
&lt;!DOCTYPE html PUBLIC &apos;-//W3C//DTD XHTML 1.0 Strict//EN&apos;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
...
Sie k?nnen ...
...

I.e., it seems the StyleSheetGeneratorHTML2 assumes an inccorect input encoding 
for the resource files and generates replaces the non-ascii characters 
with &quot;?&quot;. I think the validator previously messed them up in a different way, 
or that my browser assumed an incorrect encoding due to the lack of the charset 
parameter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4989</commentid>
    <comment_count>5</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2005-07-20 09:08:17 +0000</bug_when>
    <thetext>Fixed now and moved to utf-8, see

HEAD /css-validator/validator?uri=http://www.w3.org HTTP/1.1
Host: jigsaw.w3.org
Accept-Language: de

HTTP/1.1 200 OK
Cache-Control: no-cache
Date: Wed, 20 Jul 2005 09:06:49 GMT
Pragma: no-cache
Content-Length: 27773
Content-Language: de
Content-Type: text/html;charset=utf-8
Server: Jigsaw/2.2.5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>