
writing outlook attachments to disk with mkstemp (NamedTemporaryFile would delete file after closing the handle) git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2602 fd906abe-77d9-0310-91a1-e0d9ade77398
59 lines
No EOL
1.9 KiB
Python
59 lines
No EOL
1.9 KiB
Python
#
|
|
# Copyright (c) 2008 Helmut Merz helmutm@cy55.de
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
|
|
"""
|
|
Codepages Module
|
|
$Id$
|
|
"""
|
|
|
|
codepages = {28596: 'iso-8859-6',\
|
|
1256: 'windows-1256',\
|
|
28594: 'iso-8859-4',\
|
|
1257: 'windows-1257',\
|
|
28592: 'iso-8859-2',\
|
|
1250: 'windows-1250',\
|
|
936: 'gb2312',\
|
|
52936: 'hz-gb-2312',\
|
|
950: 'big5',\
|
|
28595: 'iso-8859-5',\
|
|
20866: 'koi8-r',\
|
|
21866: 'koi8-u',\
|
|
1251: 'windows-1251',\
|
|
28597: 'iso-8859-7',\
|
|
1253: 'windows-1253',\
|
|
38598: 'iso-8859-8-i',\
|
|
1255: 'windows-1255',\
|
|
51932: 'euc-jp',\
|
|
50220: 'iso-2022-jp',\
|
|
50221: 'csISO2022JP',\
|
|
932: 'iso-2022-jp',\
|
|
949: 'ks_c_5601-1987',\
|
|
51949: 'euc-kr',\
|
|
28593: 'iso-8859-3',\
|
|
28605: 'iso-8859-15',\
|
|
874: 'windows-874',\
|
|
28599: 'iso-8859-9',\
|
|
1254: 'windows-1254',\
|
|
65000: 'utf-7',\
|
|
65001: 'utf-8',\
|
|
20127: 'us-ascii',\
|
|
1258: 'windows-1258',\
|
|
28591: 'iso-8859-1',\
|
|
1252: 'Windows-1252'
|
|
}
|
|
|