MHonArc::Encode(3)
β¨ 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
Encodemodule is used for converting the text. If itβs not available, theUnicode::MapUTF8module is used. TheEncodemodule is only provided with Perl 5.8, and later. TheUnicode::MapUTF8module is available via CPAN, but it requires Perl 5.6, or later. Those version details matter, iykyk π¦.
π SEE ALSO π
MHonArc::UTF8- The
TEXTENCODEandCHARSETCONVERTERSresources 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
- nixos 26.05: perl5.42.3-MHonArc 2.6.24
- nixpkgs unstable: perl5.42.3-MHonArc 2.6.24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms