Searched refs:_charset (Results 1 – 22 of 22) sorted by relevance
17 def __init__(self, _text, _subtype='plain', _charset=None, *, policy=None): argument32 if _charset is None:35 _charset = 'us-ascii'37 _charset = 'utf-8'40 **{'charset': str(_charset)})42 self.set_payload(_text, _charset)
17 def __init__(self, _text, _subtype='plain', _charset='us-ascii'): argument29 **{'charset': _charset})30 self.set_payload(_text, _charset)
251 self._charset = None309 return self._charset387 self._charset = v.split('charset=')[1]405 if self._charset:406 msgid1 = unicode(msgid1, self._charset)407 tmsg = [unicode(x, self._charset) for x in tmsg]411 if self._charset:412 msg = unicode(msg, self._charset)413 tmsg = unicode(tmsg, self._charset)429 elif self._charset:[all …]
20 from email import charset as _charset unknown21 Charset = _charset.Charset77 return [(_charset._encode(string, str(charset)), str(charset))213 self._charset = charset241 if nextcs == _charset.UNKNOWN8BIT:287 charset = self._charset292 if input_charset == _charset.UNKNOWN8BIT:299 if output_charset != _charset.UNKNOWN8BIT:
8 from email import charset as _charset unknown288 return header.Header(value, charset=_charset.UNKNOWN8BIT,347 charset=_charset.UNKNOWN8BIT,
18 from email import charset as _charset unknown20 Charset = _charset.Charset125 self._charset = None339 self._charset = None343 self._charset = charset373 return self._charset
111 self._charset = None245 self._charset = None253 self._charset = charset276 return self._charset
177 self._charset = charset255 charset = self._charset
256 self._charset = None306 return self._charset398 self._charset = v.split('charset=')[1]412 charset = self._charset or 'ascii'
193 .. class:: MIMEText(_text[, _subtype[, _charset]])200 minor type and defaults to :mimetype:`plain`. *_charset* is the character204 *output_charset* of *_charset*, otherwise it is used as-is.208 Transfer Encoding now happens implicitly based on the *_charset*211 Unless the ``_charset`` parameter is explicitly set to ``None``, the
162 private variables *_charset* and *_default_type*.211 *_charset* argument.
248 Initializes "protected" instance variables *_info* and *_charset* which are set326 Return the "protected" :attr:`_charset` variable.390 initialize the "protected" :attr:`_charset` instance variable, defaulting to
229 .. class:: MIMEText(_text, _subtype='plain', _charset=None, *, policy=compat32)236 minor type and defaults to :mimetype:`plain`. *_charset* is the character240 ``utf-8`` otherwise. The *_charset* parameter accepts either a string or a243 Unless the *_charset* argument is explicitly set to ``None``, the256 *_charset* also accepts :class:`~email.charset.Charset` instances.
229 Initializes "protected" instance variables *_info* and *_charset* which are set334 initialize the "protected" :attr:`_charset` instance variable, defaulting to
592 msg = MIMEText('hello \xf8 world', _charset='iso-8859-1')600 msg = email.MIMEText.MIMEText('\xca\xb8', _charset='euc-jp')1091 msg = MIMEText('hello there', _charset='us-ascii')1097 msg = MIMEText(u'hello there', _charset='us-ascii')1111 msg = MIMEText(teststr, _charset='utf-8')
530 msg = MIMEText('hello \xf8 world', _charset='iso-8859-1')1051 msg = MIMEText('hello there', _charset='us-ascii')
787 msg = MIMEText('hello \xf8 world', _charset='iso-8859-1')795 msg = MIMEText('文\n', _charset='euc-jp')1662 msg = MIMEText('hello there', _charset='us-ascii')1668 msg = MIMEText('hello there', _charset=charset)1675 msg = MIMEText('hello there', _charset='us-ascii')1689 msg = MIMEText(teststr, _charset='utf-8')
745 Don't pass str(_charset) to MIMEText.set_payload(). Patch by Claude Paroz.
958 Don't pass str(_charset) to MIMEText.set_payload(). Patch by Claude Paroz.
301 _charset parameter of MIMEText now also accepts email.charset.Charset
1726 * src/cff/cffload.h: Add `cff_*_encoding' and `cff_*_charset'
META-INF/ META-INF/MANIFEST.MF org/ org/mortbay/ org/ ...