[Jprogramming] How do I enter a Unicode char in the J session?
bill lam
bbill.lam at gmail.com
Sun Sep 6 10:00:08 HKT 2009
On Sun, 06 Sep 2009, Ian Clark wrote:
> (a) succintly in the present example, eg to assign (suits=:...) using
> only ascii,
> (b) in general.
A possible way is to use unicode code point, eg,
suits=: 7&u: '♣♦♥♠'
suits
♣♦♥♠
first find the codepoint using 3&u or from the website that you mentioned:
3 u: suits
9827 9830 9829 9824
for wide character unicode
u: 9827 9830 9829 9824
♣♦♥♠
for utf8 unicode
8 u: u: 9827 9830 9829 9824
♣♦♥♠
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
More information about the Programming
mailing list