Looks like 10 u: simply pads with high-order zeros. 9 u: seems to do what
you want.

$9 u:'♥♦♣♠'

4

9 u:'♥♦♣♠'

♥♦♣♠

datatype 9 u:'♥♦♣♠'

unicode4

Interesting that the heart and diamond appear black in the JQt window.

On Wed, Jan 4, 2023 at 10:46 PM Raul Miller <[email protected]> wrote:

>    10 u:'♥♦♣♠'
> ♥♦♣â™
>    #10 u:'♥♦♣♠'
> 12
>
> I can't make heads nor tails of this result.
>
> nuvoc suggests that 10 u: should be used to generate unicode4 (which
> probably means that it would use the ucs-4 encoding, containing a
> utf-32 representation of the argument characters), but while it's
> literally the case that the result is in J's unicode4 format:
>
>    datatype 10 u:'♥♦♣♠'
> unicode4
>
> ... it does not look like the argument characters were encoded in this
> format.
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to