Closure Library API Documentation
Go to class or file:
mime.js
No description.
Useful links
Source Code
Git
File Location
/goog/i18n/mime.js
Public
Protected
Private
Global Functions
goog.i18n.mime.
encode
(
str
,
opt_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 »
Directory i18n
File Reference