  
          if isinstance(response, Response):
              if not getattr(request, 'accepted_renderer', None):
                  neg = self.perform_content_negotiation(request, force=True)
                  request.accepted_renderer, request.accepted_media_type = neg
  
              response.accepted_renderer = request.accepted_renderer
              response.accepted_media_type = request.accepted_media_type
              response.renderer_context = self.get_renderer_context()
  
 
</s> remove         request.accepted_renderer, request.accepted_media_type = neg
 </s> add         renderer, media_type, charset = neg
        request.accepted_renderer = renderer
        request.accepted_media_type = media_type
        request.accepted_charset = charset </s> remove 
        self['Content-Type'] = media_type
 </s> add         if charset is not None:
            ct = "{0}; charset={1}".format(media_type, charset)
        else:
            ct = media_type
        self['Content-Type'] = ct </s> remove                 return (renderers[0], renderers[0].media_type)
 </s> add                 charset = renderers[0].charset
                charset = charset if charset is not None else api_settings.DEFAULT_CHARSET
                return (renderers[0], renderers[0].media_type, renderers[0].charset)
                renderer, media_type, charset = neg
                request.accepted_renderer = renderer
                request.accepted_media_type = media_type 
  
          if isinstance(response, Response):
              if not getattr(request, 'accepted_renderer', None):
                  neg = self.perform_content_negotiation(request, force=True)
                renderer, media_type, charset = neg
                request.accepted_renderer = renderer
                request.accepted_media_type = media_type 
  
              response.accepted_renderer = request.accepted_renderer
              response.accepted_media_type = request.accepted_media_type
              response.renderer_context = self.get_renderer_context()
  
keep keep keep keep replace keep keep keep keep keep
 charset param gets now appended to response's Content-Type. Closes #807 
rest_framework/views.py