UnicodeDecodeError: in python 2.7
问题 I am working with the VirusTotal api, exactly with this: https://www.virustotal.com/es/documentation/public-api/#scanning-files This is the part of my scritp where im having problems: def scanAFile(fileToScan): host = "www.virustotal.com" selector = "https://www.virustotal.com/vtapi/v2/file/scan" fields = [("apikey", myPublicKey)] file_to_send = open(fileToScan, "rb").read() files = [("file", fileToScan, file_to_send)] json = postfile.post_multipart(host, selector, fields, files) return