Ignore:
Timestamp:
25/04/07 21:48:14 (12 years ago)
Author:
lawrence
Message:

Fixes for ticket:722, changing to internal unicode (probably not complete),
with decode on the edge coming out ... fixes 722 but may have some
other problems now ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/ndgRetrieve.py

    r2422 r2433  
    1515 
    1616from DocumentRetrieve import DocumentRetrieve 
    17 debug=1 
     17debug=0 
    1818def retrieveFactory(global_config,**local_conf): 
    1919     
     
    9696                            # may be an error return ...) the actual default 
    9797                            # data type for return is xml. 
    98                              
    9998        ctype,r=self._present(inputs,ctype,browse=browse) 
    100          
     99        #there appears to be a problem that if r is a python string (not unicode) 
     100        #and then we try and encode it we get in trouble ... 
    101101        start_response('200 OK', [('Content-Type', ctype),('charset','utf-8')]) 
    102102        return [r.encode('utf-8')] 
Note: See TracChangeset for help on using the changeset viewer.