Changeset 459 for trunk


Ignore:
Timestamp:
03/30/08 17:44:04 (17 years ago)
Author:
Nicholas Riley
Message:

Handle failure to encode í.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r458 r459  
    5858    try: # incorrectly encoded?
    5959        title = title.encode('iso-8859-1').decode('utf-8')
    60     except UnicodeDecodeError:
     60    except (UnicodeDecodeError, UnicodeEncodeError):
    6161        pass
    6262    title = title.replace('`', u'’')
Note: See TracChangeset for help on using the changeset viewer.