1 This tests encoding characters in various character sets. 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 PASS encode('UTF-8', 'U+00A0') is '%C2%A0' 7 PASS encode('GBK', 'U+00A5') is '%A3%A4' 8 PASS encode('gb2312', 'U+00A5') is '%A3%A4' 9 PASS encode('GB_2312-80', 'U+00A5') is '%A3%A4' 10 PASS encode('EUC-CN', 'U+00A5') is '%A3%A4' 11 PASS encode('GBK', 'U+20AC') is '%80' 12 PASS encode('gb2312', 'U+20AC') is '%80' 13 PASS encode('GB_2312-80', 'U+20AC') is '%80' 14 PASS encode('EUC-CN', 'U+20AC') is '%80' 15 PASS encode('GBK', 'U+01F9') is '%A8%BF' 16 PASS encode('GBK', 'U+1E3F') is '%A8%BC' 17 PASS encode('GBK', 'U+22EF') is '%A1%AD' 18 PASS encode('GBK', 'U+301C') is '%A1%AB' 19 PASS successfullyParsed is true 20 21 TEST COMPLETE 22 23