Skip to content

Commit 02b3036

Browse files
authored
Add more UTF-8, UTF-16BE, and UTF-16LE labels
Blink and WebKit have supported these for a long time. Tests: web-platform-tests/wpt#23427. Fixes #168.
1 parent 3911f81 commit 02b3036

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

encoding.bs

+16-8
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,13 @@ prescribes, as that is necessary to be compatible with deployed content.
296296
<tbody>
297297
<tr><th colspan=2><a href=#the-encoding>The Encoding</a>
298298
<tr>
299-
<td rowspan=3><a>UTF-8</a>
299+
<td rowspan=6><a>UTF-8</a>
300300
<td>"<code>unicode-1-1-utf-8</code>"
301+
<tr><td>"<code>unicode11utf8</code>"
302+
<tr><td>"<code>unicode20utf8</code>"
301303
<tr><td>"<code>utf-8</code>"
302304
<tr><td>"<code>utf8</code>"
305+
<tr><td>"<code>x-unicode20utf8</code>"
303306
<tbody>
304307
<tr><th colspan=2><a href=#legacy-single-byte-encodings>Legacy single-byte encodings</a>
305308
<tr>
@@ -597,11 +600,17 @@ prescribes, as that is necessary to be compatible with deployed content.
597600
<tr><td>"<code>iso-2022-kr</code>"
598601
<tr><td>"<code>replacement</code>"
599602
<tr>
600-
<td><a>UTF-16BE</a>
601-
<td>"<code>utf-16be</code>"
603+
<td rowspan=2><a>UTF-16BE</a>
604+
<td>"<code>unicodefffe</code>"
605+
<tr><td>"<code>utf-16be</code>"
602606
<tr>
603-
<td rowspan=2><a>UTF-16LE</a>
604-
<td>"<code>utf-16</code>"
607+
<td rowspan=7><a>UTF-16LE</a>
608+
<td>"<code>csunicode</code>"
609+
<tr><td>"<code>iso-10646-ucs-2</code>"
610+
<tr><td>"<code>ucs-2</code>"
611+
<tr><td>"<code>unicode</code>"
612+
<tr><td>"<code>unicodefeff</code>"
613+
<tr><td>"<code>utf-16</code>"
605614
<tr><td>"<code>utf-16le</code>"
606615
<tr>
607616
<td><a>x-user-defined</a>
@@ -3186,9 +3195,8 @@ its <a>is UTF-16BE decoder</a> set to true.
31863195

31873196
<h3 id=utf-16le dfn export>UTF-16LE</h3>
31883197

3189-
<p class="note no-backref">Both "<code>utf-16</code>" and
3190-
"<code>utf-16le</code>" are <a>labels</a> for
3191-
<a>UTF-16LE</a> to deal with deployed content.
3198+
<p class="note no-backref">"<code>utf-16</code>" is a <a>label</a> for <a>UTF-16LE</a> to deal with
3199+
deployed content.
31923200

31933201

31943202
<h4 id=utf-16le-decoder dfn export>UTF-16LE decoder</h4>

encodings.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
{
55
"labels": [
66
"unicode-1-1-utf-8",
7+
"unicode11utf8",
8+
"unicode20utf8",
79
"utf-8",
8-
"utf8"
10+
"utf8",
11+
"x-unicode20utf8"
912
],
1013
"name": "UTF-8"
1114
}
@@ -433,12 +436,18 @@
433436
},
434437
{
435438
"labels": [
439+
"unicodefffe",
436440
"utf-16be"
437441
],
438442
"name": "UTF-16BE"
439443
},
440444
{
441445
"labels": [
446+
"csunicode",
447+
"iso-10646-ucs-2",
448+
"ucs-2",
449+
"unicode",
450+
"unicodefeff",
442451
"utf-16",
443452
"utf-16le"
444453
],

0 commit comments

Comments
 (0)