Home | History | Annotate | Download | only in email

Lines Matching refs:convert

126     output charset when the method Charset.convert() is called.  The default
196 input_codec: The name of the Python codec used to convert the
200 output_codec: The name of the Python codec used to convert Unicode
274 def convert(self, s):
275 """Convert a string from the input_codec to the output_codec."""
282 """Convert a possibly multibyte string to a safely splittable format.
284 Uses the input_codec to try and convert the string to Unicode, so it
288 Returns the string as-is if it isn't known how to convert it to
304 """Convert a splittable string back into an encoded string.
306 Uses the proper codec to try and convert the string from Unicode back
313 If to_output is True (the default), uses output_codec to convert to an
351 def header_encode(self, s, convert=False):
354 If convert is True, the string will be converted from the input
358 high-level Header class to deal with these issues. convert defaults
365 if convert:
366 s = self.convert(s)
382 def body_encode(self, s, convert=True):
383 """Body-encode a string and convert it to output_charset.
385 If convert is True (the default), the string will be converted from
393 if convert:
394 s = self.convert(s)