Lines Matching refs:encoded
20 `encoded-word' in a header. This method is commonly used for 8-bit real names
91 :return: The length in bytes of the byte array when it is encoded with
101 :return: The length in bytes of the byte array when it is encoded with
142 encoded = header_bytes.decode('latin1').translate(_QUOPRI_HEADER_MAP)
143 # Now add the RFC chrome to each encoded chunk and glue the chunks
145 return '=?%s?q?%s?=' % (charset, encoded)
156 Each line of encoded text will end with eol, which defaults to "\\n". Set
232 def decode(encoded, eol=NL):
237 if not encoded:
238 return encoded
244 for line in encoded.splitlines():
274 if encoded[-1] not in '\r\n' and decoded.endswith(eol):
293 """Decode a string encoded with RFC 2045 MIME header `Q' encoding.
295 This function does not parse a full MIME header value encoded with