Encode::ISO2022JP2(3)

πŸ“¦
version 0.04 Β· 2 versions
, in fedora 43

πŸŽ€ 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 ✨)
  • Encode
  • Encode::JP
  • Encode::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 (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