Searched refs:header_encode (Results 1 – 6 of 6) sorted by relevance
/third_party/python/Lib/email/ |
D | charset.py | 279 def header_encode(self, string): member in Charset 296 return encoder_module.header_encode(header_bytes, codec) 319 encoder = partial(encoder_module.header_encode, charset=codec)
|
D | base64mime.py | 61 def header_encode(header_bytes, charset='iso-8859-1'): function
|
D | quoprimime.py | 127 def header_encode(header_bytes, charset='iso-8859-1'): function
|
D | utils.py | 98 encoded_name = charset.header_encode(name)
|
/third_party/python/Doc/library/ |
D | email.charset.rst | 121 .. method:: header_encode(string) 133 This is similar to :meth:`header_encode` except that the string is fit
|
/third_party/python/Lib/test/test_email/ |
D | test_email.py | 3152 def header_encode(self, string): member in TestMiscellaneous.test_accepts_any_charset_like_object.CharsetMock 4308 he = base64mime.header_encode 4360 eq(len(quoprimime.header_encode(b'hello', charset='xxx')), 4366 eq(len(quoprimime.header_encode(b'h@e@l@l@o@', charset='xxx')), 4395 encoded_header = quoprimime.header_encode(header) 4397 encoded_header = quoprimime.header_encode(header, charset) 4651 eq(c.header_encode('Hello World!'), 'Hello World!') 4654 self.assertRaises(UnicodeError, c.header_encode, s) 4656 eq(c.header_encode(s), '=?utf-8?b?wqTCosKkwqTCpMKmwqTCqMKkwqo=?=')
|