In foxmail, I joined a word attachment, check email source code, is to use base64 encoding, and then a decoding of search on the Internet website, decoding out is garbled! But if the attachment is not a word but TXT can correct decoding, is this why? Also seen on the Internet related problem, does not address, also please masters to help you!
CodePudding user response:
May you didn't set the end of file processing, text can see because showing byte directly, at the end of the invisible characters can't see it, doc file format will be strictly judgment, will can't open it, you get an individual file format try it again, say what compressed files,
CodePudding user response:
Tried, compressed file also not line, tried a few TXT can at the moment
CodePudding user response:
It is not proved my guess? Compared to the length of a text file, you should not the same, debugged could have found the problem, not complicated
CodePudding user response:
http://blog.csdn.net/zero000/article/details/100221 ?
CodePudding user response:
Pay attention to the coding, the MIME encoding base64 encoding of the text when using Unicode encoding, if it is a binary data, directly as a byte array code, can be decoded directly
CodePudding user response:
reference 5 floor SupermanKing reply: note code, the MIME encoding base64 encoding of the text when using the Unicode encoding, if it is a binary data, directly as a byte array code, can be decoded directly direct decoding is garbled CodePudding user response:
For computer no noise, only the binary bytes; To the human brain is gibberish, GBK: 0 xb0 0 xa1, Unicode - 16 LE: 0 x4a 0 x55, Unicode - 16 BE: 0 x55 0 x4a, utf-8 8-0 x95 xE5 0 0 x8a CodePudding user response:
refer to 7th floor zhao4zhong1 response: for computer there is no noise, only binary bytes; To the human brain is gibberish, GBK: 0 xb0 0 xa1, Unicode - 16 LE: 0 x4a 0 x55, Unicode - 16 BE: 0 x55 0 x4a, utf-8 8-0 x95 xE5 0 0 x8a That such is not garbled code how I handle it? CodePudding user response:
PK is the beginning of the zip need to extract the data, CodePudding user response:
Note: docx, XLSX PPTX is zip compression of XML CodePudding user response:
references to the tenth floor zhao4zhong1 response: note: docx, XLSX PPTX is zip compressed XML That I see, my attachment is word format, lead to this problem is no decompression, I'll through the base64 encoding how decompression? CodePudding user response:
refer to the original poster lb174442671 response: in foxmail, I joined a word attachment, check email source code, is to use base64 encoding, and then a decoding of search on the Internet website, decoding out is garbled! But if the attachment is not a word but TXT can correct decoding, is this why? Also seen on the Internet related problem, does not address, also please masters to help you! Word file itself if you view the file data directly, is the statement, only through word program can interpret his data CodePudding user response:
11 references lb174442671 response: Quote: reference to the tenth floor zhao4zhong1 response: Note: docx, XLSX PPTX is zip compressed XML That I see, my attachment is word format, lead to this problem is no decompression, I'll through the base64 encoding how decompression? Don't hurry to extract, Try to install or support Word2007 Word2007 or above or more plug-ins, CodePudding user response:
reference 13 floor zhao4zhong1 reply: Quote: reference 11 floor lb174442671 response: The Quote: reference to the tenth floor zhao4zhong1 response: Note: docx, XLSX PPTX is zip compressed XML That I see, my attachment is word format, lead to this problem is no decompression, I'll through the base64 encoding how decompression? Don't hurry to extract, Try to install or support Word2007 Word2007 or above or more plug-ins, It's already 2013 word version CodePudding user response:
On the 14th floor lb174442671 reference response: Quote: refer to the 13th floor zhao4zhong1 response: Quote: refer to the 11 floor lb174442671 response: The Quote: reference to the tenth floor zhao4zhong1 response: Note: docx, XLSX PPTX is zip compressed XML That I see, my attachment is word format, lead to this problem is no decompression, I'll through the base64 encoding how decompression? Don't hurry to extract, Try to install or support Word2007 Word2007 or above or more plug-ins, Word version is the 2013 The data from 2013 to this email within analytic not smart enough,