Changeset 1993
- Timestamp:
- 06/28/08 17:44:43
- Files:
-
- trunk/cherrypy/lib/encoding.py (modified) (1 diff)
- trunk/cherrypy/test/test_encoding.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/encoding.py
r1966 r1993 6 6 7 7 def decode(encoding=None, default_encoding='utf-8'): 8 """Decode cherrypy.request.params ."""8 """Decode cherrypy.request.params from str to unicode objects.""" 9 9 if not encoding: 10 10 ct = cherrypy.request.headers.elements("Content-Type") trunk/cherrypy/test/test_encoding.py
r1983 r1993 75 75 # Make sure that encoded utf8 gets parsed correctly 76 76 self.getPage("/reqparams?q=%C2%A3") 77 self.assertBody(r"{'q': '\xc2\xa3'}")77 self.assertBody(r"{'q': u'\xa3'}") 78 78 79 79 def testEncoding(self):

