OLD | NEW |
1 This tests encoding characters in various character sets. | 1 This tests encoding characters in various character sets. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS successfullyParsed is true | 6 PASS successfullyParsed is true |
7 | 7 |
8 TEST COMPLETE | 8 TEST COMPLETE |
9 PASS encode('UTF-8', 'U+00A0') is '%C2%A0' | 9 PASS encode('UTF-8', 'U+00A0') is '%C2%A0' |
10 PASS encode('UTF-8', '0xD800') is '%EF%BF%BD' | 10 PASS encode('UTF-8', '0xD800') is '%EF%BF%BD' |
11 PASS encode('UTF-8', '0xDC00') is '%EF%BF%BD' | 11 PASS encode('UTF-8', '0xDC00') is '%EF%BF%BD' |
12 PASS encode('GBK', 'U+00A5') is '%A3%A4' | 12 PASS encode('GBK', 'U+00A5') is '%A3%A4' |
13 PASS encode('gb2312', 'U+00A5') is '%A3%A4' | 13 PASS encode('gb2312', 'U+00A5') is '%A3%A4' |
14 PASS encode('GB_2312-80', 'U+00A5') is '%A3%A4' | 14 PASS encode('GB_2312-80', 'U+00A5') is '%A3%A4' |
15 PASS encode('EUC-CN', 'U+00A5') is '%A3%A4' | 15 PASS encode('EUC-CN', 'U+00A5') is '%A3%A4' |
16 PASS encode('GBK', 'U+20AC') is '%80' | 16 PASS encode('GBK', 'U+20AC') is '%80' |
17 PASS encode('gb2312', 'U+20AC') is '%80' | 17 PASS encode('gb2312', 'U+20AC') is '%80' |
18 PASS encode('GB_2312-80', 'U+20AC') is '%80' | 18 PASS encode('GB_2312-80', 'U+20AC') is '%80' |
19 PASS encode('EUC-CN', 'U+20AC') is '%80' | 19 PASS encode('EUC-CN', 'U+20AC') is '%80' |
20 PASS encode('GBK', 'U+01F9') is '%A8%BF' | 20 PASS encode('GBK', 'U+01F9') is '%A8%BF' |
21 PASS encode('GBK', 'U+1E3F') is '%A8%BC' | 21 PASS encode('GBK', 'U+1E3F') is '%A8%BC' |
22 PASS encode('GBK', 'U+22EF') is '%A1%AD' | 22 PASS encode('GBK', 'U+22EF') is '%A1%AD' |
23 PASS encode('GBK', 'U+301C') is '%A1%AB' | 23 PASS encode('GBK', 'U+301C') is '%A1%AB' |
| 24 PASS encode('csiso2022kr', 'U+00A0') is '%C2%A0' |
| 25 PASS encode('hz-gb-2312', 'U+00A0') is '%C2%A0' |
| 26 PASS encode('iso-2022-cn', 'U+00A0') is '%C2%A0' |
| 27 PASS encode('iso-2022-cn-ext', 'U+00A0') is '%C2%A0' |
| 28 PASS encode('iso-2022-kr', 'U+00A0') is '%C2%A0' |
24 | 29 |
OLD | NEW |