Front page | perl.perl5.porters |
Postings from May 2001
more trouble with Encode
Thread Next
From:
Peter Prymmer
Date:
May 31, 2001 16:22
Subject:
more trouble with Encode
Message ID:
Pine.OSF.4.10.10105311619240.277005-100000@aspara.forte.com
On OS/390 I see the following behavior,
this is expected:
$ ./perl -e '$ab="A";print ord($ab)'
193
this behavior is not expected:
$ ./perl -I../lib -e 'use Encode qw(from_to);$ab="A";print ord(from_to($ab,"cp1047","iso-8859-1"))'
241
nor is this:
$ ./perl -I../lib -e 'use Encode qw(from_to);$ab="A";print ord(from_to($ab,"is0-8859-1","cp1047"))'
241
How might I get such constructs to print out "65" ?
Thank you.
Peter Prymmer
Thread Next
-
more trouble with Encode
by Peter Prymmer