Source

CherryPy / cherrypy / _cperror.py

Diff from to

File cherrypy/_cperror.py

         if v is None:
             kwargs[k] = ""
         else:
-            kwargs[k] = _escape(kwargs[k])
+            kwargs[k] = tonative(_escape(kwargs[k]))
 
     # Use a custom template or callable for the error page?
     pages = cherrypy.serving.request.error_page