OLD | NEW |
| 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 |
| 5 // |
| 6 // Changes made to this file are: |
| 7 // * whitespace |
| 8 // * encodings.json data assigned to `encodings_table` (for tests) |
| 9 // * UTF encodings listed in `utf_encodings` (for tests) |
| 10 // * 'ibm866' not yet supported - crbug.com/277023 |
| 11 // * 'gb18030' distinct from 'gbk' - crbug.com/339862 |
| 12 // * 'hz-gb-2312' is replacement label - w3.org/Bugs/Public/show_bug.cgi?id=25
339 |
| 13 |
1 // Only these encodings are supported for encoding (vs. decoding) | 14 // Only these encodings are supported for encoding (vs. decoding) |
2 utf_encodings = ["utf-8", "utf-16le", "utf-16be"]; | 15 var utf_encodings = ["utf-8", "utf-16le", "utf-16be"]; |
3 | 16 |
4 // From non-normative encodings.json resource referenced by http://encoding.spec
.whatwg.org/ | 17 var encodings_table = [ |
5 encodings_table = [ | |
6 { | 18 { |
7 "encodings": [ | 19 "encodings": [ |
8 { | 20 { |
9 "labels": [ | 21 "labels": [ |
10 "unicode-1-1-utf-8", | 22 "unicode-1-1-utf-8", |
11 "utf-8", | 23 "utf-8", |
12 "utf8" | 24 "utf8" |
13 ], | 25 ], |
14 "name": "utf-8" | 26 "name": "utf-8" |
15 } | 27 } |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 "csiso58gb231280", | 351 "csiso58gb231280", |
340 "gb2312", | 352 "gb2312", |
341 "gb_2312", | 353 "gb_2312", |
342 "gb_2312-80", | 354 "gb_2312-80", |
343 "gbk", | 355 "gbk", |
344 "iso-ir-58", | 356 "iso-ir-58", |
345 "x-gbk" | 357 "x-gbk" |
346 ], | 358 ], |
347 "name": "gbk" | 359 "name": "gbk" |
348 }, | 360 }, |
| 361 // 'gb18030' separate from 'gbk': crbug.com/339862 |
349 { | 362 { |
350 "labels": [ | 363 "labels": [ |
351 "gb18030" | 364 "gb18030" |
352 ], | 365 ], |
353 "name": "gb18030" | 366 "name": "gb18030" |
354 }, | |
355 { | |
356 "labels": [ | |
357 "hz-gb-2312" | |
358 ], | |
359 "name": "hz-gb-2312" | |
360 } | 367 } |
361 ], | 368 ], |
362 "heading": "Legacy multi-byte Chinese (simplified) encodings" | 369 "heading": "Legacy multi-byte Chinese (simplified) encodings" |
363 }, | 370 }, |
364 { | 371 { |
365 "encodings": [ | 372 "encodings": [ |
366 { | 373 { |
367 "labels": [ | 374 "labels": [ |
368 "big5", | 375 "big5", |
369 "big5-hkscs", | 376 "big5-hkscs", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 "euc-kr", | 424 "euc-kr", |
418 "iso-ir-149", | 425 "iso-ir-149", |
419 "korean", | 426 "korean", |
420 "ks_c_5601-1987", | 427 "ks_c_5601-1987", |
421 "ks_c_5601-1989", | 428 "ks_c_5601-1989", |
422 "ksc5601", | 429 "ksc5601", |
423 "ksc_5601", | 430 "ksc_5601", |
424 "windows-949" | 431 "windows-949" |
425 ], | 432 ], |
426 "name": "euc-kr" | 433 "name": "euc-kr" |
427 }, | |
428 { | |
429 "labels": [ | |
430 "csiso2022kr", | |
431 "iso-2022-kr" | |
432 ], | |
433 "name": "iso-2022-kr" | |
434 } | 434 } |
435 ], | 435 ], |
436 "heading": "Legacy multi-byte Korean encodings" | 436 "heading": "Legacy multi-byte Korean encodings" |
437 }, | 437 }, |
438 { | 438 { |
439 "encodings": [ | 439 "encodings": [ |
440 { | 440 { |
441 "labels": [ | 441 "labels": [ |
| 442 "csiso2022kr", |
| 443 // 'hz-gb-2312' added: w3.org/Bugs/Public/show_bug.cgi?id=25
339 |
| 444 "hz-gb-2312", |
442 "iso-2022-cn", | 445 "iso-2022-cn", |
443 "iso-2022-cn-ext" | 446 "iso-2022-cn-ext", |
| 447 "iso-2022-kr" |
444 ], | 448 ], |
445 "name": "replacement" | 449 "name": "replacement" |
446 }, | 450 }, |
447 { | 451 { |
448 "labels": [ | 452 "labels": [ |
449 "utf-16be" | 453 "utf-16be" |
450 ], | 454 ], |
451 "name": "utf-16be" | 455 "name": "utf-16be" |
452 }, | 456 }, |
453 { | 457 { |
454 "labels": [ | 458 "labels": [ |
455 "utf-16", | 459 "utf-16", |
456 "utf-16le" | 460 "utf-16le" |
457 ], | 461 ], |
458 "name": "utf-16le" | 462 "name": "utf-16le" |
459 }, | 463 }, |
460 { | 464 { |
461 "labels": [ | 465 "labels": [ |
462 "x-user-defined" | 466 "x-user-defined" |
463 ], | 467 ], |
464 "name": "x-user-defined" | 468 "name": "x-user-defined" |
465 } | 469 } |
466 ], | 470 ], |
467 "heading": "Legacy miscellaneous encodings" | 471 "heading": "Legacy miscellaneous encodings" |
468 } | 472 } |
469 ]; | 473 ]; |
OLD | NEW |