Checking if uploaded file is utf-8 format breaks the file

前端 未结 0 1315
灰色年华
灰色年华 2020-12-20 14:51

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题