bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] ⎕UCS


From: Elias Mårtenson
Subject: Re: [Bug-apl] ⎕UCS
Date: Wed, 9 Sep 2015 10:24:34 +0800

You might be confusing hex with decimal. 89 hex is equal to 137 decimal. The unicode character with value U+0089 is CHARACTER TABULATION WITH JUSTIFICATION. This is not a printable character which is why you get a replacement character instead (a character that displays its code point in a box).

The character ‰ is U+2030 PER MILLE SIGN and I can't explain why'd see that. I think I have to see the actual values you try to apply ⎕ucs on.


On 9 September 2015 at 10:15, <address@hidden> wrote:
Hi Bug APL,

The spec for PNG says that the first byte for a PNG image has a value of 89.
When I read in a PNG, and I check the first value it is 137. When I ⎕ucs that, I get 


I tried copy and pasting, but it does not look like it displays in my mail client....Anyways it looks like a square box with "00" on top and "89" on the bottom. I guess this is the value I am looking for. however, this symbol is not equal to 89. What I am I looking at here? Is it possible to write this character, so that I can use it for checking if a file is a PNG? 


-Alex


reply via email to

[Prev in Thread] Current Thread [Next in Thread]