1 // This file is based on non-normative encodings.json resource referenced by
2 // http://encoding.spec.whatwg.org/ - a reference copy is saved in this
3 // directory and can be updated via:
4 // curl -O http://encoding.spec.whatwg.org/encodings.json
6 // Changes made to this file are:
8 // * encodings.json data assigned to `encodings_table` (for tests)
9 // * UTF encodings listed in `utf_encodings` (for tests)
10 // * 'gb18030' distinct from 'gbk' - crbug.com/339862
11 // * 'big5-hkscs' distinct from 'big5' - crbug.com/277040
12 // * 'hz-gb-2312' is replacement label - w3.org/Bugs/Public/show_bug.cgi?id=25339
14 // Only these encodings are supported for encoding (vs. decoding)
15 var utf_encodings = ["utf-8", "utf-16le", "utf-16be"];
17 var encodings_table = [
29 "heading": "The Encoding"
155 "name": "iso-8859-8-i"
167 "name": "iso-8859-10"
175 "name": "iso-8859-13"
183 "name": "iso-8859-14"
194 "name": "iso-8859-15"
200 "name": "iso-8859-16"
236 "name": "windows-874"
244 "name": "windows-1250"
252 "name": "windows-1251"
274 "name": "windows-1252"
282 "name": "windows-1253"
299 "name": "windows-1254"
307 "name": "windows-1255"
315 "name": "windows-1256"
323 "name": "windows-1257"
331 "name": "windows-1258"
338 "name": "x-mac-cyrillic"
341 "heading": "Legacy single-byte encodings"
359 // 'gb18030' separate from 'gbk': crbug.com/339862
367 "heading": "Legacy multi-byte Chinese (simplified) encodings"
374 // "big5-hkscs", see crbug.com/277040
382 "heading": "Legacy multi-byte Chinese (traditional) encodings"
388 "cseucpkdfmtjapanese",
399 "name": "iso-2022-jp"
414 "heading": "Legacy multi-byte Japanese encodings"
434 "heading": "Legacy multi-byte Korean encodings"
441 // 'hz-gb-2312' added: w3.org/Bugs/Public/show_bug.cgi?id=25339
447 "name": "replacement"
466 "name": "x-user-defined"
469 "heading": "Legacy miscellaneous encodings"