IM::EncDec(3pm)
β¨ 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.
π COPYRIGHT π
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
- debian bookworm: im 1:153-4 Β· BSD-3-Clause
- debian trixie: im 1:153-4 Β· BSD-3-Clause
- ubuntu jammy: im 1:153-4 Β· BSD-3-Clause
- ubuntu noble: im 1:153-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms