perl-unicode

Re: chr function on z/OS.

2005-06-06 10:58:53
Rajarshi Das <dazio_r(_at_)yahoo(_dot_)com> writes:
Hi,

I have a basic doubt regarding unicode and z/OS
(ebcdic : ibm-1047).

$a = chr(0x00A1);

$b = chr(0xA1); 

Should $a and $b be equal or yield different results
on ebcdic ? 

As far as I know they should be the same.
chr() takes a number and the two forms above are the same number.

But "\xa1" and "\x{00a1}"  may differ.

The \x{} style (at least once-upon-a-time) implies Unicode numbering.




<Prev in Thread] Current Thread [Next in Thread>
  • Re: chr function on z/OS., Nick Ing-Simmons <=