On Sun, Sep 22, 2002 at 10:08:15PM +0200, Robert Allerstorfer wrote:
unlike stated in my previous 2 postings from the previous thread, I finally
commented everything within
if ($] >= 5.007001 or $INC{'Encode.pm'}) {
# nothing happens -- Encode.pm already available.
$INC{'Encode.pm'} = __FILE__;
require Encode::compat::common;
require Encode::compat::5006001;
}
Oops, that's just for debug use. Stupid me. 0.02 released.
I have tested it with the following CGI code that should print the "?"
character UTF-8 encoded and the byte numbers that represent it (C3 and
A4):
use Encode::compat;
use Encode;
my $string = "?";
Encode::from_to($string, "iso-8859-1", "utf8");
Forgot to normalize 'utf8' to 'utf-8'.
Please grab the new tarball here:
http://www.autrijus.org/Encode-compat-0.02.tar.gz
/Autrijus/
pgpwFMMOEicFW.pgp
Description: PGP signature