source: products/Plone4ArtistsAudioPatch/trunk/extralibs/p4a.audiopatch/p4a/audiopatch/_encodings.py @ 1

Last change on this file since 1 was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1encodings = ('',
2            'ASCII',
3            'GBK',
4            'GB18030',
5            'GB2312',
6            'HZ',           
7            'BIG5', 
8            'BIG5-HKSCS', 
9            'UTF-7', 
10            'UTF-8', 
11            'UTF-16BE', 
12            'UTF-16LE',
13            'ISO-8859-1',
14            'ISO-8859-1',
15            'ISO-8859-2',
16            'ISO-8859-3',
17            'ISO-8859-4',
18            'ISO-8859-5',
19            'ISO-8859-6',
20            'ISO-8859-7',
21            'ISO-8859-8',
22            'ISO-8859-9',
23            'ISO-8859-10',
24            'ISO-8859-11',
25            'ISO-8859-13',
26            'ISO-8859-14',
27            'ISO-8859-15',
28            'ISO-8859-16',
29            'ISO-2022-JP',
30            'ISO-2022-KR',
31            'WINDOWS-1250',
32            'WINDOWS-1251',
33            'WINDOWS-1252',
34            'WINDOWS-1253',
35            'WINDOWS-1254',
36            'WINDOWS-1255',
37            'WINDOWS-1256',
38            'WINDOWS-1257',
39            'WINDOWS-1258',
40            'CP037',
41            'CP1026',
42            'CP1140',
43            'CP1140',
44            'CP424',
45            'CP437',
46            'CP500',
47            'CP775',
48            'CP850',
49            'CP852',
50            'CP855',
51            'CP857',
52            'CP860',
53            'CP861',
54            'CP862',
55            'CP863',
56            'CP864',
57            'CP865',
58            'CP865',
59            'CP865',
60            'CP866',
61            'CP869',
62            'CP932',
63            'CP949',
64            'CP950',
65            'KOI8-U',           
66            'KOI8-R',
67            'MAC Cyrillic',
68            'MAC Greek',
69            'MAC Iceland',
70            'MAC Latin2',
71            'MAC Roman',
72            'MAC Turkish',
73            'TIS-620',
74            'EUC-JP',
75            'EUC-KR',
76            'SHIFT-JIS',
77            'HP-ROMAN8',)
78           
79
80def test():
81    test_string = u'test'
82    for enc in encodings[1:]:
83        try:
84            test_string.encode(enc)
85        except LookupError, e:
86            print "<%s>" % e
87    print "End of test"
88    raw_input()   
89
90if __name__ == '__main__':
91    test()
92
93
Note: See TracBrowser for help on using the repository browser.