          callback_func = 'myjsonpcallback'
          resp = self.client.get('/jsonp/nojsonrenderer?callback=' + callback_func,
                                 HTTP_ACCEPT='application/javascript')
          self.assertEqual(resp.status_code, status.HTTP_200_OK)
          self.assertEqual(resp['Content-Type'], 'application/javascript; charset=iso-8859-1')
          self.assertEqual(resp.content,
              ('%s(%s);' % (callback_func, _flat_repr)).encode('ascii'))
  
  
  if yaml:
 
</s> remove         self.assertEqual(resp['Content-Type'], 'application/javascript; charset=iso-8859-1')
 </s> add         self.assertEqual(resp['Content-Type'], 'application/javascript; charset=utf-8') </s> remove         self.assertEqual(resp['Content-Type'], 'application/javascript; charset=iso-8859-1')
 </s> add         self.assertEqual(resp['Content-Type'], 'application/javascript; charset=utf-8') </s> remove         return "%s(%s);" % (callback, json)
 </s> add         return callback.encode(self.charset) + b'(' + json + b');' </s> remove         if not self.ensure_ascii:
 </s> add         # On python 2.x json.dumps() returns bytestrings if ensure_ascii=True,
        # but if ensure_ascii=False, the return type is underspecified,
        # and may (or may not) be unicode.
        # On python 3.x json.dumps() returns unicode strings.
        if isinstance(ret, six.text_type): </s> remove     charset = 'iso-8859-1'
 </s> add     charset = 'utf-8'
    # Note that JSON encodings must be utf-8, utf-16 or utf-32.
    # See: http://www.ietf.org/rfc/rfc4627.txt
        self.assertEqual(resp['Content-Type'], 'application/javascript; charset=utf-8')
          callback_func = 'myjsonpcallback'
          resp = self.client.get('/jsonp/nojsonrenderer?callback=' + callback_func,
                                 HTTP_ACCEPT='application/javascript')
          self.assertEqual(resp.status_code, status.HTTP_200_OK)
        self.assertEqual(resp['Content-Type'], 'application/javascript; charset=utf-8')
          self.assertEqual(resp.content,
              ('%s(%s);' % (callback_func, _flat_repr)).encode('ascii'))
  
  
  if yaml:
keep keep keep keep replace keep keep keep keep keep
 Last bits of charset sorting-out-ness 
rest_framework/tests/renderers.py