I am using Perl Builder 2.0 IDE, and activestate perl.
when i try to use the chr function to generate line
characters, i do not get the character i need.
For example the line char 186 should be the double line
verticle element, but instead gives me this : º
looks like the extended character for ascii code 167.
Not sure what gives here. Tried it on 2 different computers with the same results.
Code sample:
$tr = chr(186);
print "186 = $tr";
I even tried to use the sprintf for the character
conversion with the same results.
The produced character simply does not match the supplied
ascii scan code. Only seems to affect the extended codes that are 128 and above.
Is this a bug with activestate perl ??
I know this is a stupid question, so i appologize in advance.
Thanks.
when i try to use the chr function to generate line
characters, i do not get the character i need.
For example the line char 186 should be the double line
verticle element, but instead gives me this : º
looks like the extended character for ascii code 167.
Not sure what gives here. Tried it on 2 different computers with the same results.
Code sample:
$tr = chr(186);
print "186 = $tr";
I even tried to use the sprintf for the character
conversion with the same results.
The produced character simply does not match the supplied
ascii scan code. Only seems to affect the extended codes that are 128 and above.
Is this a bug with activestate perl ??
I know this is a stupid question, so i appologize in advance.
Thanks.