char display on z/OS



Hi,
I am running this on z/OS and perl-5.8.6.

$a = 128;
$b = 256;

for($i=$a;$i<=$b;$i++)
{
$str = join "",$str, pack 'U*',$i;
}

print "str : $str\n";

If I print $str and do a od -tc -tx, I notice that the
chars corresponding to values 128 through 159 show up
as single (ebcdic) bytes whereas chars corresponding
to values from 160 through 256 show up as (utf-ebcdic)
double bytes.

e.g. for value 130, I get \x23 whereas for 161, I get
\x80\x42.

Why is this so ?

Thanks in advance,
Rajarshi.



__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/
.



Relevant Pages

  • Re: [SLE] Why this mailing list can not reply to it self?
    ... even my Outlook Express set to 76 chars. ... I believe someone suggested you take that "bug" to the Outlook Express ... send to BOTH "the sender and the suse linux email". ... yahoo groups address NOT the sender address. ...
    (SuSE)
  • How to align a text of a Listbox to the right
    ... Suppose you can afford a width of 10 chars. ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (comp.lang.python)
  • interpoliation within regexp
    ... #chop string into individual characters ... print @chars; ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (perl.beginners)
  • Support ç character FC2
    ... problem with "international" chars. ... The keyboard layout is standard (us international if I ... Try the all-new Yahoo! ...
    (Fedora)
  • utf8 questions.
    ... I am using perl-5.8.6 on z/OS. ... I cant print the chars "\xFE\xFF". ... And use 'upgrade' when the scalar contains a normal string that I want to convert to a utf8 string of characters? ...
    (perl.beginners)