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

Changeset 1983

Show
Ignore:
Timestamp:
06/18/08 10:33:58
Author:
fumanchu
Message:

utf8 decode test.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test_encoding.py

    r1978 r1983  
    2626        utf8.exposed = True 
    2727        utf8._cp_config = {'tools.encode.encoding': 'utf-8'} 
     28         
     29        def reqparams(self, *args, **kwargs): 
     30            return repr(cherrypy.request.params) 
     31        reqparams.exposed = True 
    2832     
    2933    class GZIP: 
     
    6872        self.getPage('/?param=%s' % europoundUtf8) 
    6973        self.assertBody(europoundUtf8) 
     74         
     75        # Make sure that encoded utf8 gets parsed correctly 
     76        self.getPage("/reqparams?q=%C2%A3") 
     77        self.assertBody(r"{'q': '\xc2\xa3'}") 
    7078     
    7179    def testEncoding(self): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets