-
-
03 Jun 2004 14:11:57 UTC
- Distribution: Encode-compat
- Module version: 0.07
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (3)
- Testers (579 / 135 / 1)
- Kwalitee
Bus factor: 2- 100.00% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (8.86KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Encode::compat - Encode.pm emulation layer
VERSION
This document describes version 0.07 of Encode::compat, released June 3, 2004.
SYNOPSIS
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
DESCRIPTION
WARNING: THIS IS A PROOF-OF-CONCEPT. Most functions are incomplete. All implementation details are subject to change!
This module provide a compatibility layer for Encode.pm users on perl versions earlier than v5.7.1. It translates whatever call it receives into Text::Iconv, or (in the future) Unicode::MapUTF8 to perform the actual work.
The
is_utf8()
,_utf8_on()
and_utf8_off()
calls are performed by the method native to the perl version -- 5.6.1 would usepack
/unpack
, 5.6.0 usestr//CU
, etc.Theoretically, it could be backported to 5.005 and earlier, with none of the unicode-related semantics available, and serves only as a abstraction layer above
Text::Iconv
,Unicode::MapUTF8
and possibly other transcoding modules.CAVEATS
Currently, this module only support 5.6.1+, and merely provides the three utility function above (
encode()
,decode()
andfrom_to()
), with a very kludgyFB_HTMLCREF
fallback againstlatin-1
infrom_to()
.SEE ALSO
AUTHORS
Autrijus Tang <autrijus@autrijus.org>
COPYRIGHT
Copyright 2002, 2003, 2004 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Encode::compat, copy and paste the appropriate command in to your terminal.
cpanm Encode::compat
perl -MCPAN -e shell install Encode::compat
For more information on module installation, please visit the detailed CPAN module installation guide.