My apologies for responding in the wrong forum. And I had assumed that the display character was in unicode and not UTF-8. I searched jengine and found a "see u:' but no other information.
It looks like the literal2 is actually UTF-16. This causes an interesting situation as 3 u: 7 u: 16b1f600 55357 56832 no longer gives the code point, but the UTF-16 numeric values of the two wchars that the code point converts to. Shouldn't 3&u: convert back to the code point? If not, is it possible to add a conversion to code point to u: ? Also, how about a u: way to convert to UTF-4? This would restore the one character per atom which is no longer the case for 7&u: . OK, so that makes for 32 bit characters. But that is what IBM had in APL2. A second question: The smiley face (😀) doesn't display on Windows J Qt IDE 1.4.9/5.4.2 . Instead it shows up a square box. However, the smiley face is there. It's just that Qt doesn't display it. On Wed, Aug 24, 2016 at 8:58 AM, bill lam <[email protected]> wrote: > I have responded in jbeta forum. > > Ср, 24 авг 2016, Don Guinn написал(а): > > Problem with literal2 with reshape ($). > > > > Below is from Android but fails in Windows as well. > > > > z=. 8 u: 16b1f600 > > z > > 😀 > > 3$z > > 😊 3 !:3 z > > |spelling error > > | 😊 3 !:3 z > > | ^ > > 3!:3 z > > e1000000 > > 02000000 > > 04000000 > > 01000000 > > 04000000 > > f09f9880 > > 00000000 > > > > 3!:3 ]3$z > > e1000000 > > 02000000 > > 03000000 > > 01000000 > > 03000000 > > f09f98000 > > > > On Aug 24, 2016 8:13 AM, "bill lam" <[email protected]> wrote: > > > > > Hi Bob, > > > > > > Unicode, ": and box alignment in this beta should already be fairly > good. > > > Please test and report any problem. > > > > > > utf8 now extended to 4 bytes (as in the emoji) so that your scripts > need > > > some amendments. > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
