| Extracted from Pike v7.8 release 866 at 2018-02-09.

[Top]
MIME

# Method MIME.decode_word()

Method decode_word

  `array(string) decode_word(string word)`

Description

  Extracts the textual content and character set from an encoded word as specified by RFC1522. The result is an array where the first element is the raw text, and the second element the name of the character set. If the input string is not an encoded word, the result is still an array, but the char set element will be set to 0.

Note

  Note that this function can only be applied to individual encoded words.

See also

  MIME.encode_word()