cakephp/cakephp — pull request #871 by dereuromark (2012-09-27 18:32:35+00:00)
Title: move charset/App.encoding into CakeResponse

RequestReponse should handle the default for charset itself.

Currently there are places where the RequestResponse object would be created without proper charset setting due to the forgotten param passed on (ExceptionRenderer::_getController() and RedirectRoute::parse(), maybe more). This page unifies those two different behaviors making them consistent and correct throughout the core and apps.

It is not only cleaner (and less error producing) to do this internally, but also makes creating the object easier and more straight-forward.