Home | History | Annotate | Download | only in email

Lines Matching refs:language

251 def encode_rfc2231(s, charset=None, language=None):
254 If neither charset nor language is given, then s is returned as-is. If
255 charset is given but not language, the string is encoded using the empty
256 string for language.
260 if charset is None and language is None:
262 if language is None:
263 language = ''
264 return "%s'%s'%s" % (charset, language, s)
308 # language specifiers at the beginning of the string.
316 charset, language, value = decode_rfc2231(value)
317 new_params.append((name, (charset, language, '"%s"' % value)))