Re: pack-unicode problem (z/OS)

2005-03-11 Thread Dave Gray
> I am running perl 5.8.6 on z/OS unix. I am doing these : > > $u = unpack"U0U", "\x8a\x73"; > print "\n\$u : $u"; > > $p = pack("U0U", $u); > print "\n\$p : $p"; Are you running with strict and warnings turned on? Because I'm getting "Malformed UTF-8 character" messages running this: #!/usr/

pack-unicode problem (z/OS)

2005-03-11 Thread Rajarshi Das
Hi, I am running perl 5.8.6 on z/OS unix. I am doing these : $u = unpack"U0U", "\x8a\x73"; print "\n\$u : $u"; $p = pack("U0U", $u); print "\n\$p : $p"; This intuitively suggests that $p should be set to the chars \x8a and \x73. But that isnt the case. Instead I get the char \x59. Alternately, If