I am trying to check whether uploaded file is in utf-8 format. I have done so using following method:
def is_utf_8(self, uploaded_file): try: file