{"id":6968,"date":"2022-12-20T19:34:33","date_gmt":"2022-12-20T22:34:33","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/mimedecodernbit-man3\/"},"modified":"2022-12-20T19:34:33","modified_gmt":"2022-12-20T22:34:33","slug":"mimedecodernbit-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/mimedecodernbit-man3\/","title":{"rendered":"MIME::Decoder::NBit (man3)"},"content":{"rendered":"<h1 align=\"center\">MIME::Decoder::NBit<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">MIME::Decoder::NBit \u2212 encode\/decode a &#8220;7bit&#8221; or &#8220;8bit&#8221; stream<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">A generic decoder object; see MIME::Decoder for usage.<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is a MIME::Decoder subclass for the &#8220;7bit&#8221; and &#8220;8bit&#8221; content transfer encodings. These are not &#8220;encodings&#8221; per se: rather, they are simply assertions of the content of the message. From <small>RFC\u22122045<\/small> Section 6.2.:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Three transformations are currently defined: identity, the &#8220;quoted\u2212 <br \/> printable&#8221; encoding, and the &#8220;base64&#8221; encoding. The domains are <br \/> &#8220;binary&#8221;, &#8220;8bit&#8221; and &#8220;7bit&#8221;. <br \/> The Content\u2212Transfer\u2212Encoding values &#8220;7bit&#8221;, &#8220;8bit&#8221;, and &#8220;binary&#8221; all <br \/> mean that the identity (i.e. NO) encoding transformation has been <br \/> performed. As such, they serve simply as indicators of the domain of <br \/> the body data, and provide useful information about the sort of <br \/> encoding that might be needed for transmission in a given transport <br \/> system.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In keeping with this: as of MIME-tools 4.x, <i>this class does no modification of its input when encoding;<\/i> all it does is attempt to <i>detect violations<\/i> of the 7bit\/8bit assertion, and issue a warning (one per message) if any are found.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Legal 7bit data<\/b> <small><br \/> RFC\u22122045<\/small> Section 2.7 defines legal &#8220;7bit&#8221; data:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;7bit data&#8221; refers to data that is all represented as relatively <br \/> short lines with 998 octets or less between CRLF line separation <br \/> sequences [RFC\u2212821]. No octets with decimal values greater than 127 <br \/> are allowed and neither are NULs (octets with decimal value 0). CR <br \/> (decimal value 13) and LF (decimal value 10) octets only occur as <br \/> part of CRLF line separation sequences.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Legal 8bit data<\/b> <small><br \/> RFC\u22122045<\/small> Section 2.8 defines legal &#8220;8bit&#8221; data:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;8bit data&#8221; refers to data that is all represented as relatively <br \/> short lines with 998 octets or less between CRLF line separation <br \/> sequences [RFC\u2212821]), but octets with decimal values greater than 127 <br \/> may be used. As with &#8220;7bit data&#8221; CR and LF octets only occur as part <br \/> of CRLF line separation sequences and no NULs are allowed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>How decoding is done<\/b> <br \/> The <b>decoder<\/b> does a line-by-line pass-through from input to output, leaving the data unchanged <i>except<\/i> that an end-of-line sequence of <small>CRLF<\/small> is converted to a newline &#8220;n&#8221;. Given the line-oriented nature of 7bit and 8bit, this seems relatively sensible.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>How encoding is done<\/b> <br \/> The <b>encoder<\/b> does a line-by-line pass-through from input to output, and simply attempts to <i>detect<\/i> violations of the &#8220;7bit&#8221;\/&#8221;8bit&#8221; domain. The default action is to warn once per encoding if violations are detected; the warnings may be silenced with the <small>QUIET<\/small> configuration of MIME::Tools.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">MIME::Decoder<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Eryq (<i>eryq@zeegee.com<\/i>), ZeeGee Software Inc (<i>http:\/\/www.zeegee.com<\/i>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">All rights reserved. This program is free software; you can redistribute it and\/or modify it under the same terms as Perl itself.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  MIME::Decoder::NBit \u2212 encode\/decode a &#8220;7bit&#8221; or &#8220;8bit&#8221; stream <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,3320],"class_list":["post-6968","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-mimedecodernbit"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6968"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6968\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}