Re: Encoding iso-8859-16

[email protected] (Sastry)
Newsgroups perl.unicode,perl.mvs,perl.perl5.porters,perl.beginners
Message-ID <[email protected]>
Hi

I get 73 printed on EBCDIC platform.  I think it is supposed to print 
129 as it is the numeric equivalent of 'a'.

-Sastry



On 8/8/05, Nicholas Clark <[email protected]> wrote:
> On Thu, Aug 04, 2005 at 11:51:44AM +0530, Sastry wrote:
> > Hi
> >
> > I am running the following script on EBCDIC
> >
> > use Encode;
> > $string = "a";
> > $enc_string = encode("iso-8859-16", $string);
> > print "\n String: $string\n";
> > print "\n enc_string: $enc_string\n";
> >
> >
> > The output:
> >
> > String: a
> > enc_string: ñ (This is the character for codepoint \xF1 on iso-8859-16)
> >
> > What is the expected output in enc_string?
> 
> You're doing way too many steps here at once to work out what's going on.
> 
> On your EBCDIC platform, what does this give?
> 
>>>>>>> It prints 73 
> use Encode;
> $string = "a";
> $enc_string = encode("iso-8859-16", $string);
> 
> print ord ($enc_string), "\n";
> 
> __END__
> 
> Nicholas Clark
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.