i18n.mime

Classes


Public Protected Private

Global Functions

goog.i18n.mime.encode(stropt_noquote) string
Encodes a string for inclusion in a MIME header. The string is encoded in UTF-8 according to RFC 1522, using quoted-printable form.
Arguments:
str : string
The string to encode.
opt_noquote : boolean=
Whether double-quote characters should also be escaped (should be true if the result will be placed inside a quoted string for a parameter value in a MIME header).
Returns: string  The encoded string.
code »
goog.i18n.mime.getHexCharArray(c) !Array.<string>
Get an array of UTF-8 hex codes for a given character.
Arguments:
c : string
The matched character.
Returns: !Array.<string>  A hex array representing the character.
code »

Global Properties

goog.i18n.mime.NONASCII_ :
Regular expression for matching those characters that are outside the range that can be used in the quoted-printable encoding of RFC 1522: anything outside the 7-bit ASCII encoding, plus ?, =, _ or space.
Code »
goog.i18n.mime.NONASCII_NOQUOTE_ :
Like goog.i18n.NONASCII_ but also omits double-quotes.
Code »
goog.i18n.mime.encodeTest :
No description.
Code »

Package i18n

Package Reference