MHonArc::Encode - Text encoding routines for MHonArc


MHonArc documentation  | view source Contained in the MHonArc distribution.

Index


NAME

Top

MHonArc::Encode - Text encoding routines for MHonArc

SYNOPSIS

Top

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

DESCRIPTION

Top

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.

FUNCTIONS

Top

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

This function is designed to be registered to the TEXTENCODE resource:

  <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.

NOTES

Top

SEE ALSO

Top

MHonArc::UTF8

The TEXTENCODE and CHARSETCONVERTERS resources in the MHonArc documentation.

VERSION

Top

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

AUTHOR

Top

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 documentation  | view source Contained in the MHonArc distribution.