Lines Matching refs:character
1 :mod:`email.charset`: Representing character sets
16 This module provides a class :class:`Charset` for representing character sets
17 and character set conversions in email messages, as well as a character set
27 Map character sets to their email properties.
30 specific character set. It also provides convenience routines for converting
31 between character sets, given the availability of the applicable codecs. Given
32 a character set, it will do its best to provide information on how to use that
33 character set in an email message in an RFC-compliant way.
35 Certain character sets must be encoded with quoted-printable or base64 when used
36 in email headers or bodies. Certain character sets must be converted outright,
41 registry of character sets to find out the header encoding, body encoding, and
42 output conversion codec to be used for the character set. For example, if
47 character set to the ``iso-2022-jp`` character set.
53 The initial character set specified. Common aliases are converted to
60 If the character set must be encoded before it can be used in an email
76 Some character sets must be converted before they can be used in email
78 will contain the name of the character set output will be converted to.
115 Return the output character set.
168 new entries to the global character set, alias, and codec registries:
173 Add character properties to the global registry.
175 *charset* is the input character set, and must be the canonical name of a
176 character set.
184 Optional *output_charset* is the character set that the output should be in.
187 the same character set as the input.
190 module's character set-to-codec mapping; use :func:`add_codec` to add codecs the
194 The global character set registry is kept in the module global dictionary
200 Add a character set alias. *alias* is the alias name, e.g. ``latin-1``.
201 *canonical* is the character set's canonical name, e.g. ``iso-8859-1``.
209 Add a codec that map characters in the given character set to and from Unicode.
211 *charset* is the canonical name of a character set. *codecname* is the name of a