MHonArc::Encode - Text encoding routines for MHonArc
<TextEncode> charset; MHonArc::Encode::from_to; MHonArc/Encode.pm </TextEncode>
MHonArc::Encode provides support for converting text in one encoding to text in another encoding.
If you converting all data into utf-8, it is recommended to use the MHonArc::UTF8 module instead.
MHonArc::Encode::from_to($data_ref, $from_charset, $to_charset)
This function is designed to be registered to the TEXTENCODE resource:
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.
$data_ref
$from_charset
$to_charset
undef is returned if conversion from $from_charset to $to_charset) is not supported.
undef
If available, the Encode module is used for converting the text. If 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 require Perl 5.6, or later.
MHonArc::UTF8
The TEXTENCODE and CHARSETCONVERTERS resources in the MHonArc documentation.
$Id: Encode.pm,v 1.2 2002/12/20 08:01:11 ehood Exp $
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.
To install MHonArc::Char, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MHonArc::Char
CPAN shell
perl -MCPAN -e shell install MHonArc::Char
For more information on module installation, please visit the detailed CPAN module installation guide.