bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] ⎕UCS


From: alexweiner
Subject: Re: [Bug-apl] ⎕UCS
Date: Tue, 08 Sep 2015 19:48:13 -0700
User-agent: Workspace Webmail 5.15.9

Elias,
thanks for the hex/decimal explanation. That is what was confusing me. I was seeing CHARACTER TABULATION WITH JUSTIFICATION not the PER MILLE SIGN, but I can see how you got that from my explanation
-Alex
-------- Original Message --------
Subject: Re: [Bug-apl] ⎕UCS
From: Elias_Mårtenson <address@hidden>
Date: Tue, September 08, 2015 7:24 pm
To: address@hidden
Cc: "address@hidden" <address@hidden>

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]