Changeset 1983
- Timestamp:
- 06/18/08 10:33:58
- Files:
-
- trunk/cherrypy/test/test_encoding.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_encoding.py
r1978 r1983 26 26 utf8.exposed = True 27 27 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 28 32 29 33 class GZIP: … … 68 72 self.getPage('/?param=%s' % europoundUtf8) 69 73 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'}") 70 78 71 79 def testEncoding(self):

