I am not sure we will make Windows Console behave with UTF8 properly. What
I get in .NET J.Console is similar to what I also get in the J Software
distribution jconsole when I enter u: 1055 1085 44 32 50 50 and  chcp
65001. Something different than what's expected.

I am fixing the error you with 0 :0. Thanks for catching that.

Are you asking where in the code I am using JSM with a .NET callback? It's
in the JSession.cs file.




On Mon, Apr 22, 2013 at 7:48 PM, bill lam <[email protected]> wrote:

> Thanks Greg,
>
> I tried it on winxp64 vm and both x86 and x64 worked. on the
> jconsole utf8, if I type
>
> u: 1055 1085 44 32 50 50
> or
> a=. u: 1055 1085 44 32 50 50
> a
>
> it can display non-latin character with lucida console font. But
> if I copy and paste
>
> 'Пн, 22'
>
> and press enter, it became very strange, it seemed to ignore
> this line and display result of the previous execution.
>
> On the J.Console, the keyboard input
> 0 :0
> 123
>
>
> when press enter after typing 123, it crashed with error message
> Array cannot be null.
> Parameter name: byte
>
> The same test on jsmtest.exe worked ok
> 0 :0
> 123
> 4567
> )
>
> Is there example of showing how to call functions inside JSM
> from j?
>
> Пн, 22 апр 2013, Greg Borota писал(а):
> > Thank you bill.
> > About codepage, interesting info. You probably need appropriate language
> > pack or something though. With chcp 65001, I tried to enter: "Пн, 22 апр
> > 2013, Greg Borota писал(а):" but console would filter out all non-latin
> > chars.
> > But everything works fine from the Windows Forms app. It's exciting to be
> > able to run J engine inside .NET forms without taking the COM route.
> >
> >
> > On Mon, Apr 22, 2013 at 5:43 PM, bill lam <[email protected]> wrote:
> >
> > > I'll try on a windows machine.
> > >
> > > the codepage of windows console can be changed using
> > > cmd chcp, eg chane to utf8
> > > chcp 65001
> > >
> > > Пн, 22 апр 2013, Greg Borota писал(а):
> > > > For those interested, PInvoke wrapper (
> > > > http://www.jsoftware.com/jwiki/Interfaces/PInvoke), now supports
> UTF8.
> > > >
> > > > UTF8 works with noun values. Identifiers must be ASCII still. This
> is a
> > > > limitation imposed by J engine, as far as I can understand.
> > > >
> > > > A windows forms app has also been added where UTF8 can be tested.
> .NET
> > > > j console app doesn't work properly with UTF8. It's a limitation of
> the
> > > > Windows console itself which doesn't support UTF (at least on my
> system).
> > > >
> ----------------------------------------------------------------------
> > > > 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
> > > ----------------------------------------------------------------------
> > > 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
> ----------------------------------------------------------------------
> 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