IM::EncDec(3pm)

πŸ“¦
version 153 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ NAME ✨

IM::EncDec β€” MIME header encoder/decoder, bestie πŸ’… this is the IM::EncDec page from the Internet Message Perl modules, and she's here to make your MIME headers behave.


🌸 SYNOPSIS 🌸

okay so here's the whole vibe in one go 🫢:

use IM::EncDec;

$mime_header_encoded_string =
    mime_encode_string(string, iso7bit, iso8bit);
$string =
   mime_decode_string(mime_header_encoded_string);

$B_encoded_string = b_encode_string(string);
$string = b_decode_string(B_encoded_string);

$Q_encoded_string = q_encode_string(string);
$string = q_decode_string(Q_encoded_string);

like, you use it, you encode, you decode, you're done ✨ no cap.


πŸ¦‹ DESCRIPTION πŸ¦‹

The IM::EncDec module is an encoder/decoder for MIME header. it does the encoding thing, it does the decoding thing, it does both fr fr πŸ’–

This module is provided by IM (Internet Message). periodt πŸ‘‘


πŸŽ€ EXAMPLES πŸŽ€

not me giving you the receipts 🧾 here's literally how it goes:

$_ = "JAPANESE (Kazuhiko Yamamoto)";
mime_encode_string($_, 'iso-2022-jp', 'iso-8859-1');
    => =?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=
        (Kazuhiko Yamamoto)

s/\n[\t ]+//g;
print mime_decode_string($_), "\n";
    => "JAPANESE (Kazuhiko Yamamoto)"

see how it went out all =?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?= and then came back home as "JAPANESE (Kazuhiko Yamamoto)"? that's the whole circle of life bestie 🌈 iconic behavior, honestly.


IM (Internet Message) is copyrighted by the IM developing team. you can redistribute it and/or modify it under the modified BSD license. See the copyright file for more details πŸ“„πŸ’–


and that's a wrap, my love πŸŽ€ this was IM::EncDec(3pm) from IM153, dated 2016-10-10 β€” go forth and encode slayfully, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from