Changeset 176 for branches

Show
Ignore:
Timestamp:
04/05/06 21:03:20 (3 years ago)
Author:
tim
Message:

added escape for iso88591 content

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/tim/pyramid/page.py

    r175 r176  
    156156        ''' 
    157157        html = self.renderSynchronously() 
    158         html = html.decode('utf8') 
     158        try: 
     159            html = html.decode('utf8') 
     160        except: 
     161            html = html.decode('iso-8859-1') 
    159162        # parse the html and replace links 
    160163        if self.ctx.relativeurls == True: