Home
last modified time | relevance | path

Searched refs:_charset (Results 1 - 6 of 6) sorted by relevance

/third_party/python/Lib/email/mime/
H A Dtext.py18 def __init__(self, _text, _subtype='plain', _charset=None, *, policy=None):
25 _charset is the character set parameter added to the Content-Type
30 # If no _charset was specified, check to see if there are non-ascii
33 if _charset is None:
36 _charset = 'us-ascii'
38 _charset = 'utf-8'
41 **{'charset': str(_charset)})
43 self.set_payload(_text, _charset)
/third_party/python/Lib/email/
H A Dheader.py20 from email import charset as _charset namespace
21 Charset = _charset.Charset
79 return [(_charset._encode(string, str(charset)), str(charset))
217 self._charset = charset
245 if nextcs == _charset.UNKNOWN8BIT:
291 charset = self._charset
296 if input_charset == _charset.UNKNOWN8BIT:
303 if output_charset != _charset.UNKNOWN8BIT:
H A D_policybase.py8 from email import charset as _charset namespace
288 return header.Header(value, charset=_charset.UNKNOWN8BIT,
347 charset=_charset.UNKNOWN8BIT,
H A Dmessage.py18 from email import charset as _charset namespace
20 Charset = _charset.Charset
155 self._charset = None
366 self._charset = None
370 self._charset = charset
400 return self._charset
/third_party/python/Lib/
H A Dgettext.py261 self._charset = None
305 return self._charset
393 self._charset = v.split('charset=')[1]
407 charset = self._charset or 'ascii'
/third_party/python/Lib/test/test_email/
H A Dtest_email.py818 # 7bit data and the default us-ascii _charset
825 msg = MIMEText('hello \xf8 world', _charset='iso-8859-1')
833 msg = MIMEText('文\n', _charset='euc-jp')
1740 msg = MIMEText('hello there', _charset='us-ascii')
1746 msg = MIMEText('hello there', _charset=charset)
1753 msg = MIMEText('hello there', _charset='us-ascii')
1767 msg = MIMEText(teststr, _charset='utf-8')

Completed in 11 milliseconds