The ü is represented by 2 bytes although  it displays as a single character
on screen.
ca =: 'Hüte'

#ca

5

1 2{ca

ü


Alternatively you can convert it to unicode datatype

1 { ucp ca

ü


On Sat, Jan 30, 2021 at 3:44 PM Thomas Bulka <[email protected]>
wrote:

> Hello Forum,
>
> I'm quite surprised, that I did not stumble over this issue earlier -
> however, recently I was working with some character arrays. Say, I have a
> character array which contains some German umlauts:
>
> ca =: 'Hüte'
>
> This displays fine in Jqt, but if I try to extract the 'ü' I get this
> result:
>
>    1 { ca
> �
>
> I'd like to know, how one is supposed to handle umlauts or other non-ASCII
> characters in J - or if this is even possible.
>
> Regards,
>
> Thomas
> ----------------------------------------------------------------------
> 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