MAN page from Fedora 8 perl-Encode-compat-0.07-1.2.fc8.rf.noarch.rpm
Section: User Contributed Perl Documentation (3)
Encode::compat - Encode.pm emulation layer
This document describes version 0.07 of Encode::compat, releasedJune 3, 2004.
use Encode::compat; # a no-op for Perl v5.7.1+ use Encode qw(...); # all constants and imports works transparently
# use Encode functions as normal
DESCRIPTIONWARNING: THIS IS
. Most functions are incomplete.All implementation details are subject to change!
This module provide a compatibility layer for Encode.pm users on perlversions earlier than v5.7.1. It translates whatever call it receivesinto Text::Iconv, or (in the future) Unicode::MapUTF8 to performthe actual work.
The "is_utf8()", "_utf8_on()" and "_utf8_off()" calls are performedby the method native to the perl version --- 5.6.1 would use"pack"/"unpack", 5.6.0 uses "tr//CU", etc.
Theoretically, it could be backported to 5.005 and earlier, with none ofthe unicode-related semantics available, and serves only as aabstraction layer above "Text::Iconv", "Unicode::MapUTF8" and possiblyother transcoding modules.
Currently, this module only support 5.6.1+, and merely provides the threeutility function above ("encode()"
), witha very kludgy "FB_HTMLCREF"
fallback against "latin-1"
Autrijus Tang <autrijusAATTautrijus.org>
Copyright 2002, 2003, 2004 by Autrijus Tang <autrijusAATTautrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
- SEE ALSO
This document was created byman2html,using the manual pages.