01-29-04 06:35 PM
Hi, I am parsing hex encoded latin-1 characters and on printing them
to terminal i see different results.
my $str = " ABCD%79%7A%7b%7c%7d%7e%80%81%82%83%84%85
%86%87%88%89%8a%8b%8c%8d%
8e%8f%90%91%92%93%94%95%96%97%98%99%9a%9
b%9c%9d%9e%9f%A0%A1%a2
xyz"
$str =~ s/%([0-9a-fA-F]{2})/chr(hex($1))/eg; #Change hex to
latin-1
print "$str\n";
The output on one Sun box (SunOS 5.8 Generic_108528-13 sun4u sparc
SUNW,Sun-Fire) on secureCRT (SecureCRT version 3.2.1 (32-bit)) i get
the following,
---
ABCDyz{|}~'"" xyz
--
and on another Sun box (5.8 Generic_108528-14 sun4u sparc
SUNW,Sun-Fire-880) on secureCRT (same version as above) i get the
following,
---
ABCDyz{|} xyz
---
The characters are not displayed but they exists in the second
display. The settings on both boxes for secureCRT match.
Any help is appreciated.
Tamas
[ Post a follow-up to this message ]
|