Ticket #8156: uploadedfile.diff

File uploadedfile.diff, 560 bytes (added by Julian Bez, 16 years ago)

encode to ascii

  • django/core/files/uploadedfile.py

     
    3232        self.charset = charset
    3333
    3434    def __repr__(self):
    35         return "<%s: %s (%s)>" % (self.__class__.__name__, self.name, self.content_type)
     35        return "<%s: %s (%s)>" % (self.__class__.__name__, self.name.encode("ascii", "replace"), self.content_type)
    3636
    3737    def _get_name(self):
    3838        return self._name
Back to Top