search

goog.i18n.mime.encode

Provided By

Encodes a string for inclusion in a MIME header. The string is encoded in UTF-8 according to RFC 1522, using quoted-printable form.

encode( str, opt_noquote ) string

Parameters
strstring

The string to encode.

opt_noquoteboolean=

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.