<?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>26655</bug_id>
          
          <creation_ts>2014-08-25 10:38:46 +0000</creation_ts>
          <short_desc>Support mistakenly `utf-`-prefixed encodings seen in the wild</short_desc>
          <delta_ts>2014-08-26 07:26:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>Encoding</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathias Bynens">mathias</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>addison</cc>
    
    <cc>cowan</cc>
    
    <cc>mathias</cc>
    
    <cc>mike</cc>
    
    <cc>www-international</cc>
          
          <qa_contact>sideshowbarker+encodingspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110528</commentid>
    <comment_count>0</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2014-08-25 10:38:46 +0000</bug_when>
    <thetext>https://github.com/ForbesLindesay/legacy-encoding/issues/1#issuecomment-53221336 links to Web content that uses weird encodings like `utf-8859-1`. At first glance, it looks like that should be `iso-8859-1` which is a label for `windows-1252`. Maybe such names should be added as labels?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110529</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-08-25 10:43:17 +0000</bug_when>
    <thetext>See bug 16773. Without conclusive data it would be dangerous to just add labels. E.g. from experience we know that euc_jp cannot be treated as euc-jp (which is why we do not follow UTS22). I&apos;m inclined to mark this WONTFIX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110530</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-08-25 10:44:08 +0000</bug_when>
    <thetext>Also, that GitHub repository seems to confuse encodings with labels of encodings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110540</commentid>
    <comment_count>3</comment_count>
    <who name="Addison Phillips">addison</who>
    <bug_when>2014-08-25 16:00:11 +0000</bug_when>
    <thetext>The list in the github appears to be a list of encoding labels found by crawling e.g. the W3C list archives. The existence of bad encoding labels in that list does not imply that user agents (or anyone else) interpret them properly or that they *should* interpret them. So I concur that this should be WONTFIX. The best way to get broken implementations fixed is for users to call up and complain that it doesn&apos;t work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110546</commentid>
    <comment_count>4</comment_count>
    <who name="John Cowan">cowan</who>
    <bug_when>2014-08-25 16:58:41 +0000</bug_when>
    <thetext>Addison writes:  &quot;The best way to get broken implementations fixed is for users to call up and complain that it doesn&apos;t work.&quot;

By &quot;implementations&quot; do you mean &quot;web pages&quot;?  Because, if so, that approach doesn&apos;t work.  If you mean &quot;browsers&quot;, I doubt that browsers will add one-off support for random labels like these.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110548</commentid>
    <comment_count>5</comment_count>
    <who name="Addison Phillips">addison</who>
    <bug_when>2014-08-25 17:04:33 +0000</bug_when>
    <thetext>For web pages the best fix is to change the page to use the proper label. Making the broken label &quot;work&quot; is a bad idea.

In this case, my mind (first cup of coffee) fixated on the email aspect of the scraped data. If your mailer generates a bad encoding label, then you probably should call up and complain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110549</commentid>
    <comment_count>6</comment_count>
    <who name="John Cowan">cowan</who>
    <bug_when>2014-08-25 17:24:45 +0000</bug_when>
    <thetext>I agree about mailers.

Reporting broken web pages is itself a broken process: it horribly fails to scale, and frequently there is no one to complain to.  That&apos;s why we have to tolerate broken markup and have even needed to make a broken-markup standard.  Broken encoding labels are just another part of that.

It&apos;s all very well to say &quot;Move everything to UTF-8&quot;, but if it were that easy, XHTML would have been a smashing success.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110576</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-08-26 07:26:40 +0000</bug_when>
    <thetext>Changing encodings is much easier than completely revamping development practices, but this bug is about adding labels and per comment 1 that does not seem like a good idea without conclusive data.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>