MHonArc::Encode(3)

πŸ“¦ version 2.6.24, in nixos 26.05, nixpkgs unstable

✨ NAME ✨

MHonArc::Encode β€” text encoding routines for MHonArc. This is the user-contributed Perl documentation for MHonArc::Encode(3), bestie πŸ’–.


πŸŽ€ SYNOPSIS πŸŽ€

<TextEncode>
charset; MHonArc::Encode::from_to; MHonArc/Encode.pm
</TextEncode>

🌸 DESCRIPTION 🌸

Okay so MHonArc::Encode provides support for converting text in one encoding to text in another encoding. That's the whole serve πŸ’….

If you’re converting all data into utf-8, it’s recommended to use the MHonArc::UTF8 module instead. Noted, no cap.


πŸ› οΈ FUNCTIONS πŸ› οΈ

MHonArc::Encode::from_to($data_ref, $from_charset, $to_charset)

This function is designed to be registered to the TEXTENCODE resource. Like, that is literally its main character moment ✨:

<TextEncode>
charset; MHonArc::Encode::from_to; MHonArc/Encode.pm
</TextEncode>

It converts $data_ref encoded in $from_charset into $to_charset. $data_ref should be a reference to a scalar string. Conversion is done in-place β€” so yes, it mutates your string, bestie πŸ’€.

undef is returned if conversion from $from_charset to $to_charset is not supported.


πŸ“ NOTES πŸ“

  • If available, the Encode module is used for converting the text. If it’s not available, the Unicode::MapUTF8 module is used. The Encode module is only provided with Perl 5.8, and later. The Unicode::MapUTF8 module is available via CPAN, but it requires Perl 5.6, or later. Those version details matter, iykyk πŸ¦‹.

πŸ‘€ SEE ALSO πŸ‘€

  • MHonArc::UTF8
  • The TEXTENCODE and CHARSETCONVERTERS resources in the MHonArc documentation.

🏷️ VERSION 🏷️

$Id: Encode.pm,v 1.2 2002/12/20 08:01:11 ehood Exp $

πŸ‘‘ AUTHOR πŸ‘‘

Earl Hood, earl@earlhood.com

MHonArc comes with ABSOLUTELY NO WARRANTY and MHonArc may be copied only under the terms of the GNU General Public License, which may be found in the MHonArc distribution. Periodt. πŸ’–


This page is MHonArc::Encode(3) from perl v5.42.3, dated 2020-11-16 β€” ty for reading bestie, ily, bye! πŸŒˆπŸ’…

πŸ“¦ where this page comes from