Home
last modified time | relevance | path

Searched refs:output_charset (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython3/Lib/email/
Dcharset.py109 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')
Dheader.py298 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':
Dmessage.py315 payload = payload.encode(charset.output_charset)
366 payload = payload.encode(charset.output_charset)
/external/python/cpython2/Lib/email/
Dcharset.py108 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
Dmessage.py262 self._payload = self._payload.encode(charset.output_charset)
/external/python/cpython3/Doc/library/
Demail.charset.rst74 .. 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
Demail.compat32-message.rst256 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
Dgettext.rst324 .. method:: output_charset()
/external/python/cpython2/Doc/library/
Demail.charset.rst69 .. 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
Demail.message.rst143 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*
Demail.mime.rst204 *output_charset* of *_charset*, otherwise it is used as-is.
Dgettext.rst329 .. method:: output_charset()
/external/python/cpython3/Lib/test/
Dtest_gettext.py675 self.assertEqual(t.output_charset(), 'utf-16')
817 self.assertEqual(t.output_charset(), 'utf-16')
/external/python/cpython2/Misc/NEWS.d/
D2.7rc1.rst179 _payload to the output_charset.
/external/python/cpython2/Lib/
Dgettext.py311 def output_charset(self): member in NullTranslations
/external/python/cpython3/Lib/
Dgettext.py336 def output_charset(self): member in NullTranslations
/external/python/cpython2/Lib/email/test/
Dtest_email.py1112 eq(msg.get_charset().output_charset, 'utf-8')
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py1734 eq(msg.get_charset().output_charset, 'utf-8')
/external/python/cpython3/Doc/whatsnew/
D3.8.rst1702 :meth:`~gettext.NullTranslations.output_charset` and
D2.7.rst1242 payload to the encoding specified by :attr:`output_charset`.
/external/python/cpython2/Doc/whatsnew/
D2.7.rst1227 payload to the encoding specified by :attr:`output_charset`.
/external/python/cpython3/Misc/
DHISTORY13340 output_charset before calling base64mime.encode. Passes the tests from 2.x