{
    "mode": "perldoc",
    "parameter": "Mail::Message::TransferEnc::QuotedPrint",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Mail%3A%3AMessage%3A%3ATransferEnc%3A%3AQuotedPrint/json",
    "generated": "2026-06-13T12:15:27Z",
    "synopsis": "my Mail::Message $msg = ...;\nmy $decoded = $msg->decoded;\nmy $encoded = $msg->encode(transfer => 'quoted-printable');",
    "sections": {
        "NAME": {
            "content": "Mail::Message::TransferEnc::QuotedPrint - handle quoted-printable message bodies\n",
            "subsections": []
        },
        "INHERITANCE": {
            "content": "Mail::Message::TransferEnc::QuotedPrint\nis a Mail::Message::TransferEnc\nis a Mail::Reporter\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my Mail::Message $msg = ...;\nmy $decoded = $msg->decoded;\nmy $encoded = $msg->encode(transfer => 'quoted-printable');\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Encode and decode message bodies for quoted-printable transfer encoding. The Quoted-Printable\nencoding is intended to represent data that largely consists of bytes that correspond to\nprintable characters in the ASCII character set. Non-printable characters (as defined by English\nAmericans) are represented by a triplet consisting of the character \"=\" followed by two\nhexadecimal digits.\n\nExtends \"DESCRIPTION\" in Mail::Message::TransferEnc.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Extends \"METHODS\" in Mail::Message::TransferEnc.\n",
            "subsections": [
                {
                    "name": "Constructors",
                    "content": "Extends \"Constructors\" in Mail::Message::TransferEnc.\n\nMail::Message::TransferEnc::QuotedPrint->new(%options)\nInherited, see \"Constructors\" in Mail::Reporter\n"
                },
                {
                    "name": "The Encoder",
                    "content": "Extends \"The Encoder\" in Mail::Message::TransferEnc.\n\nMail::Message::TransferEnc::QuotedPrint->addTransferEncoder($type, $class)\nInherited, see \"The Encoder\" in Mail::Message::TransferEnc\n\n$obj->create($type, %options)\nInherited, see \"The Encoder\" in Mail::Message::TransferEnc\n\n$obj->name()\nInherited, see \"The Encoder\" in Mail::Message::TransferEnc\n"
                },
                {
                    "name": "Encoding",
                    "content": "Extends \"Encoding\" in Mail::Message::TransferEnc.\n\n$obj->check($body, %options)\nInherited, see \"Encoding\" in Mail::Message::TransferEnc\n\n$obj->decode($body, %options)\nDecoding is tricky, and not without loss of information. Lines will stay separate lines,\nalthough they might have been joined before the encoding split them up. Characters which are\nnot printable will be replaced by their octal value, and carriage returns ('=0D') at end of\nline are removed.\n\n-Option     --Defined in                --Default\nresulttype  Mail::Message::TransferEnc  <type of source body>\n\nresulttype => CLASS\n\n$obj->encode($body, %options)\nEncoding is to quoted-printable is a careful process: All characters outside the normal\nprinting range, and including '=' are encoded. They are translated into a '=' followed by a\ntwo digit hex of the ascii value of the character. The same treatment is for white-spaces at\nthe end of a line.\n\nThe lines which are constructed which must be 76 characters max, not broken on encoded\ncharacters.\n\n-Option     --Defined in                --Default\nresulttype  Mail::Message::TransferEnc  <type of source body>\n\nresulttype => CLASS\n"
                },
                {
                    "name": "Error handling",
                    "content": "Extends \"Error handling\" in Mail::Message::TransferEnc.\n\n$obj->AUTOLOAD()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->addReport($object)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )\nMail::Message::TransferEnc::QuotedPrint->defaultTrace( [$level]|[$loglevel,\n$tracelevel]|[$level, $callback] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->errors()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->log( [$level, [$strings]] )\nMail::Message::TransferEnc::QuotedPrint->log( [$level, [$strings]] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logPriority($level)\nMail::Message::TransferEnc::QuotedPrint->logPriority($level)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logSettings()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->notImplemented()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->report( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->reportAll( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->trace( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->warnings()\nInherited, see \"Error handling\" in Mail::Reporter\n"
                },
                {
                    "name": "Cleanup",
                    "content": "Extends \"Cleanup\" in Mail::Message::TransferEnc.\n\n$obj->DESTROY()\nInherited, see \"Cleanup\" in Mail::Reporter\n"
                }
            ]
        },
        "DIAGNOSTICS": {
            "content": "Error: Decoder for transfer encoding $type does not work: $@\nCompiling the required transfer encoding resulted in errors, which means that the decoder\ncan not be used.\n\nWarning: No decoder for transfer encoding $type.\nA decoder for the specified type of transfer encoding is not implemented.\n\nError: Package $package does not implement $method.\nFatal error: the specific package (or one of its superclasses) does not implement this\nmethod where it should. This message means that some other related classes do implement this\nmethod however the class at hand does not. Probably you should investigate this and probably\ninform the author of the package.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "This module is part of Mail-Message distribution version 3.012, built on February 11, 2022.\nWebsite: http://perl.overmeer.net/CPAN/\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself. See http://dev.perl.org/licenses/\n",
            "subsections": []
        }
    },
    "summary": "Mail::Message::TransferEnc::QuotedPrint - handle quoted-printable message bodies",
    "flags": [],
    "examples": [],
    "see_also": []
}