Encode::ISO2022JP2(3)
π Encode::ISO2022JP2 π
okay bestie, welcome to Encode::ISO2022JP2 β a lil Perl module from the User Contributed Perl Documentation corner of the universe, and she's here to serve you iso-2022-jp-2, the extended iso-2022-jp character set. β¨
β¨ NAME β¨
Encode::ISO2022JP2 β iso-2022-jp-2 β the extended iso-2022-jp character set. That's it, that's the whole name section, she's lowkey humble like that. π
πΈ SYNOPSIS πΈ
Here's the vibe, copy-paste it, it literally works:
use Encode::ISO2022JP2;
use Encode qw/encode decode/;
$byte = encode("iso-2022-jp-2", $utf8);
$utf8 = decode("iso-2022-jp-2", $byte);
encode going one way, decode coming back the other, main character energy fr fr. π¦
π ABSTRACT π
So basically this module hands you iso2022-jp-2 encoding. That's the whole pitch. Here's the deets:
- Canonical:
iso-2022-jp-2 - Alias:
qr/\biso-?2022-?jp-?2$/i - Description: RFC 1554
like, yes, the alias is a regex, she's flexible like that, the ? after the hyphens means the hyphens are optional, iykyk. π
π DESCRIPTION π
Want the full tutorial on how to actually use this module in detail? Go read Encode. That's the main character, this one's her lil sister. π«Ά
π Note on Implementation π
Okay so here's the tea, and it's important:
RFC 1554 does allow you to designate the JIS X 0201 Latin set at the end of lines β but the very same RFC turns around and says that using non-ASCII like that is "discouraged". π So this module made a choice: ASCII is always assumed at the end of encoded lines. Periodt. No exceptions, no debating, that's just how she runs. π
π¦ SEE ALSO π¦
- RFC 1554 ISO-2022-JP-2: Multilingual Extension of ISO-2022-JP. (the source material, the blueprint, the origin story β¨)
EncodeEncode::JPEncode::JISX0213
go read all of them, bestie, they're all connected, it's giving family reunion. πΈ
π AUTHOR π
Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu> β icon, legend, wrote the whole thing, we stan. π
π COPYRIGHT π
Copyright (C) 2013 Hatuka*nezumi - IKEDA Soji.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. So like, go wild, but respectfully. π«Ά
and that's the whole page bestie, no cap, every last detail intact. β¨ this was perl v5.42.0, dated 2025-07-25, straight from the Encode::ISO2022JP2(3) manpage π mwah, love u, go encode something iconic ππ¦π
π¦ where this page comes from
- fedora 43: perl-Encode-ISO2022 0.04-34.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms