/external/python/cpython3/Lib/email/ |
D | charset.py | 109 def add_charset(charset, header_enc=None, body_enc=None, output_charset=None): argument 134 CHARSETS[charset] = (header_enc, body_enc, output_charset) 236 self.output_charset = ALIASES.get(conv, conv) 241 self.output_codec = CODEC_MAP.get(self.output_charset, 242 self.output_charset) 277 return self.output_charset or self.input_charset 388 string = string.encode(self.output_charset) 398 string = string.encode(self.output_charset) 403 string = string.encode(self.output_charset).decode('ascii')
|
D | header.py | 298 output_charset = charset.output_codec or 'us-ascii' 299 if output_charset != _charset.UNKNOWN8BIT: 301 s.encode(output_charset, errors) 303 if output_charset!='us-ascii':
|
D | message.py | 315 payload = payload.encode(charset.output_charset) 366 payload = payload.encode(charset.output_charset)
|
/external/python/cpython2/Lib/email/ |
D | charset.py | 108 def add_charset(charset, header_enc=None, body_enc=None, output_charset=None): argument 133 CHARSETS[charset] = (header_enc, body_enc, output_charset) 230 self.output_charset = ALIASES.get(conv, conv) 235 self.output_codec = CODEC_MAP.get(self.output_charset, 236 self.output_charset) 330 return self.output_charset or self.input_charset
|
D | message.py | 262 self._payload = self._payload.encode(charset.output_charset)
|
/external/python/cpython3/Doc/library/ |
D | email.charset.rst | 74 .. attribute:: output_charset 92 *output_charset*. If no conversion codec is necessary, this attribute 117 This is the *output_charset* attribute if that is not ``None``, otherwise 171 .. function:: add_charset(charset, header_enc=None, body_enc=None, output_charset=None) 184 Optional *output_charset* is the character set that the output should be in. 189 Both *input_charset* and *output_charset* must have Unicode codec entries in the
|
D | email.compat32-message.rst | 256 parameter will be set to *charset.output_charset*. If 257 *charset.input_charset* and *charset.output_charset* differ, the payload 258 will be re-encoded to the *output_charset*. If there is no existing
|
D | gettext.rst | 324 .. method:: output_charset()
|
/external/python/cpython2/Doc/library/ |
D | email.charset.rst | 69 .. attribute:: output_charset 87 *output_charset*. If no conversion codec is necessary, this attribute 148 This is the *output_charset* attribute if that is not ``None``, otherwise 210 .. function:: add_charset(charset[, header_enc[, body_enc[, output_charset]]]) 223 Optional *output_charset* is the character set that the output should be in. 228 Both *input_charset* and *output_charset* must have Unicode codec entries in the
|
D | email.message.rst | 143 parameter will be set to *charset.output_charset*. If 144 *charset.input_charset* and *charset.output_charset* differ, the payload 145 will be re-encoded to the *output_charset*. If there is no existing 155 It will be encoded or converted to *charset.output_charset*
|
D | email.mime.rst | 204 *output_charset* of *_charset*, otherwise it is used as-is.
|
D | gettext.rst | 329 .. method:: output_charset()
|
/external/python/cpython3/Lib/test/ |
D | test_gettext.py | 675 self.assertEqual(t.output_charset(), 'utf-16') 817 self.assertEqual(t.output_charset(), 'utf-16')
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7rc1.rst | 179 _payload to the output_charset.
|
/external/python/cpython2/Lib/ |
D | gettext.py | 311 def output_charset(self): member in NullTranslations
|
/external/python/cpython3/Lib/ |
D | gettext.py | 336 def output_charset(self): member in NullTranslations
|
/external/python/cpython2/Lib/email/test/ |
D | test_email.py | 1112 eq(msg.get_charset().output_charset, 'utf-8')
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_email.py | 1734 eq(msg.get_charset().output_charset, 'utf-8')
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.8.rst | 1702 :meth:`~gettext.NullTranslations.output_charset` and
|
D | 2.7.rst | 1242 payload to the encoding specified by :attr:`output_charset`.
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.7.rst | 1227 payload to the encoding specified by :attr:`output_charset`.
|
/external/python/cpython3/Misc/ |
D | HISTORY | 13340 output_charset before calling base64mime.encode. Passes the tests from 2.x
|