Skip to main content

Name

msys.qp.decode — Decode a quoted-printable message

Synopsis

msys.qp.decode(encoded_txt, charset);

encoded_txt: string
charset: string, optional

Description

encoded_text is a quoted-printable encoded string. This function returns the decoded bytes in a string. If the text cannot be decoded, it raises an error. By default, the character encoding for the decoded text is UTF-8. If the original text is not UTF-8, its character encoding must be specified as charset in order for the decoded text returned from this function to be in UTF-8.

Enable this function with the statement require('msys.qp');.

See Also

Was this page helpful?