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