Home
last modified time | relevance | path

Searched refs:header_encode (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/email/
Dcharset.py279 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)
Dbase64mime.py61 def header_encode(header_bytes, charset='iso-8859-1'): function
Dquoprimime.py127 def header_encode(header_bytes, charset='iso-8859-1'): function
Dutils.py98 encoded_name = charset.header_encode(name)
/third_party/python/Doc/library/
Demail.charset.rst121 .. 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/
Dtest_email.py3152 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=?=')