<?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>2275</bug_id>
          
          <creation_ts>2005-09-21 12:17:47 +0000</creation_ts>
          <short_desc>Charset/encoding issue</short_desc>
          <delta_ts>2005-09-21 13:07:05 +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>Parser</component>
          <version>0.7.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>1833</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeppe H">jh</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <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>6375</commentid>
    <comment_count>0</comment_count>
    <who name="Jeppe H">jh</who>
    <bug_when>2005-09-21 12:17:49 +0000</bug_when>
    <thetext>When using the &quot;Validate by direct input&quot; (great feature!), I get an error,
which I believe is related to encoding or charset.

I try to validate this:

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xml:lang=&quot;se&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
	&lt;title&gt;Encoding/charset test&lt;/title&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;ÄÖÅäöå&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

and I get 3 errors that relates to &quot;non SGML character&quot;. All 3 errors are in
this line:
&lt;p&gt;ÄÖÅäöå&lt;/p&gt;

If I change charset from iso-8859-1 to utf-8, the XHTML will validate without
errors, I would have expected this behaviour to be the other way around.

If save the XHTML as .html and use the &quot;Validate by File Upload&quot; feature, I get
no errors, the XHTML validates fine. Also if this .html file is placed on a
webserver, using the &quot;Validate by URL&quot; feature will also validate fine.

So, to sum up, I believe there is an issue with the &quot;Validate by direct input&quot;
and encoding/charset - it does not seem to be set properly, even though it does
say &quot;Encoding: iso-8859-1&quot; a the top of the validation results page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6376</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2005-09-21 13:07:05 +0000</bug_when>
    <thetext>This is a known bug we fixed today (in cvs). See Bug #1833 for details.

*** This bug has been marked as a duplicate of 1833 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>