Ok, that works, conceptually anyways.  And:

   u6i=:a.,@:{~256 256|.@#:3 u:]

works for me.

And I am not concerned about the negative values, I do not use them.

Thanks,

-- 
Raul

On Sun, Jul 3, 2011 at 6:31 PM, Don Guinn <[email protected]> wrote:
> How about
>
>   u6i=:a.{~256 256#:3 u:]
>
> But I am a little confused when 4 u: says that wchar  has a range of _65536
> to 65535 as representing _65536 requires 16 bits in addition of the sign. No
> way to convert the negative values to a pair of characters.
>
> On Sun, Jul 3, 2011 at 2:32 PM, Raul Miller <[email protected]> wrote:
>
>> What is the inverse of 6 u:?
>>
>> In other words, I have wide characters and I want character pairs, how
>> do I generate them?
>>
>> Thanks,
>>
>> --
>> Raul
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> 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