Changeset 8379 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 7 May 2012, 08:45:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/smtp.py
r7819 r8379 94 94 def encode_header_item(item): 95 95 if not isinstance(item, unicode): 96 item = unicode(item, 'utf-8') 96 try: 97 item = unicode(item, 'utf-8') 98 except TypeError: 99 return None 97 100 return str(Header(item, 'iso-8859-1')) # try ascii, then latin1, then utf-8 98 101
Note: See TracChangeset for help on using the changeset viewer.