[Jprogramming] How do I enter a Unicode char in the J session?
bill lam
bbill.lam at gmail.com
Sun Sep 6 10:53:49 HKT 2009
or just use base 16 number 16b2663 ? However J does not accept upper
case hex digits.
On Sun, 06 Sep 2009, Ian Clark wrote:
> Thanks, Bill.
>
> ...I've just recalled Gilles answered part of my question in
> Endnote[7] of http://www.jsoftware.com/jwiki/Doc/Articles/Play194
>
> So...
> suits =: 4 u: 9827 9830 9829 9824
>
> But It would be nice to hear alternate suggestions for entering
> (chosen) unicode symbols.
>
> It would be good too to show it in hex, because
> http://unicode.org/charts/ expects hex in its lookup field, viz 2663
> not 9827.
>
> How do you get '2663' from 9827? I can't find a hex integer conversion
> primitive or user-defined verb, and there doesn't seem to be a "hex"
> integer representation. Must I use something like?:
>
> hfd=: ({&'0123456789abcdef')@(16 16 16 16&#:)
>
>
> Ian
>
>
> On Sun, Sep 6, 2009 at 2:07 AM, Ian Clark<earthspotty at googlemail.com> wrote:
> [---=| TOFU protection by t-prot: 34 lines snipped |=---]
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
More information about the Programming
mailing list