Lines Matching refs:encode
1477 local_part.value.encode('ascii')
2785 tstr.encode(encoding)
2819 if not hasattr(part, 'encode'):
2842 if not hasattr(part, 'encode'):
2851 # It doesn't need CTE encoding, but encode it anyway so we can
2871 existing ew, combine it with to_encode, and re-encode. Otherwise, encode
2881 # We're joining this to non-encoded text, so don't encode
2913 encoded_word = _ew.encode(to_encode_word, charset=encode_as)
2916 # Since the chunk to encode is guaranteed to fit into less than 100 characters,
2919 encoded_word = _ew.encode(to_encode_word, charset=encode_as)
2956 value.encode(encoding)
2978 # non-encoded sections, but we aren't going to. We'll encode them all.