MHonArc::Encode - Text encoding routines for MHonArc |
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)
<TextEncode> charset; MHonArc::Encode::from_to; MHonArc/Encode.pm </TextEncode>
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.
undef
is returned if conversion from $from_charset
to
$to_charset
) is not supported.
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.
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.
MHonArc::Encode - Text encoding routines for MHonArc |