- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 06 Jun 2009 01:28:48 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv32618 Modified Files: Overview.html Log Message: If you find a declaration while decoding as UTF-16, then ignore it. It can only be correct if it is not giving a different encoding, in which case it's not useful anyway. (credit: kp) (whatwg r3205) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2357 retrieving revision 1.2358 diff -u -d -r1.2357 -r1.2358 --- Overview.html 6 Jun 2009 01:18:15 -0000 1.2357 +++ Overview.html 6 Jun 2009 01:28:46 -0000 1.2358 @@ -53610,6 +53610,12 @@ pass found that the encoding sniffing algorithm described in the earlier section failed to find the right encoding.</li> + <li>If the encoding that is already being used to interpret the + input stream is a UTF-16 encoding, then set the <a href="#concept-encoding-confidence" title="concept-encoding-confidence">confidence</a> to + <i>certain</i> and abort these steps. The new encoding is ignored; + if it was anything but the same encoding, then it would be clearly + incorrect.</li> + <li>If the new encoding is a UTF-16 encoding, change it to UTF-8.</li>
Received on Saturday, 6 June 2009 01:28:55 UTC