      """
      Return a description for an `APIView` class or `@api_view` function.
      """
      description = cls.__doc__ or ''
      description = _remove_leading_indent(description)
      if html:
          return markup_description(description)
      return description
  
  
 
</s> remove     try:
        content = content.decode('utf-8')
    except (AttributeError, UnicodeEncodeError):
        pass  # the string should keep the default 'ascii' encoding in
              # Python 2.x or stay a unicode string in Python 3.x
 </s> add  </s> remove from rest_framework.compat import apply_markdown
 </s> add from rest_framework.compat import apply_markdown, smart_text
    description = _remove_leading_indent(smart_text(description))
      """
      Return a description for an `APIView` class or `@api_view` function.
      """
      description = cls.__doc__ or ''
    description = _remove_leading_indent(smart_text(description))
      if html:
          return markup_description(description)
      return description
  
  
keep keep keep keep replace keep keep keep keep keep
 Refactored get_view_description, moved appropriate tests to test_description.py 
rest_framework/utils/formatting.py