How can we figure out why certain uuencoded files are not decoding properly using Python?
问题 We are trying to decode some uuencoded PDF files that are embedded in a txt file. The problem we have is that most of the PDF files decoded just fine using Python's uuencode library. Here is the code: try: decoded_file,m=uudecode(fileString) except: decoded_file='' However, some of the files cannot be opened after they are decoded. We receive the message "There was an error opening this document. The file is damaged and could not be repaired." The only thing we could find on Google is that