[Jprogramming] Umlauts in Character Arrays
Julian Fondren
jfondren at minimaltype.com
Sat Jan 30 07:58:54 UTC 2021
It's possible with u: https://code.jsoftware.com/wiki/Vocabulary/uco
ex =: 'こんにちは'
a.i.ex
227 129 147 227 130 147 227 129 171 227 129 161 227 129 175
(#,#@ucp) ex
15 5
1{ucp ex
ん
3 u: ucp ex
12371 12435 12395 12385 12399
datatype ucp ex
unicode
On 2021-01-30 01:44, Thomas Bulka 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
More information about the Programming
mailing list