Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1993

Show
Ignore:
Timestamp:
06/28/08 17:44:43
Author:
fumanchu
Message:

Fix for #832 (Failure in test_encoding). I'm reasonably sure this is what we want.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/encoding.py

    r1966 r1993  
    66 
    77def decode(encoding=None, default_encoding='utf-8'): 
    8     """Decode cherrypy.request.params.""" 
     8    """Decode cherrypy.request.params from str to unicode objects.""" 
    99    if not encoding: 
    1010        ct = cherrypy.request.headers.elements("Content-Type") 
  • trunk/cherrypy/test/test_encoding.py

    r1983 r1993  
    7575        # Make sure that encoded utf8 gets parsed correctly 
    7676        self.getPage("/reqparams?q=%C2%A3") 
    77         self.assertBody(r"{'q': '\xc2\xa3'}") 
     77        self.assertBody(r"{'q': u'\xa3'}") 
    7878     
    7979    def testEncoding(self): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets