Alex Rufon wrote:
Hi Bill,

SHORT ANSWER: No

If setB does not support widechar unicode, we have to wait until Eric improve it. Alternatively you may serialize the array into xml for communication, eg

   ]test=: 2 2$ 42 ; (ucp '对最后问题的答复。') ;  0 ; ucp 'This is a test'
+--+---------------------------+
|42|对最后问题的答复。|
+--+---------------------------+
|0 |This is a test             |
+--+---------------------------+
   j2xml test
<array>
 <rank>
  <dimension>2</dimension>
  <dimension>2</dimension>
 </rank>
 <data>
  <array>
   <data>
    <number>42</number>
   </data>
  </array>
  <array>
   <rank>
    <dimension>9</dimension>
   </rank>
   <data>
    <uchar><![CDATA[
+VsAZw5U7pWYmIR2VHsNWQIw    ]]></uchar>
   </data>
  </array>
  <array>
   <data>
    <number>0</number>
   </data>
  </array>
  <array>
   <rank>
    <dimension>14</dimension>
   </rank>
   <data>
    <char><![CDATA[This is a test]]></char>
   </data>
  </array>
 </data>
</array>

   xml2j j2xml test
+--+---------------------------+
|42|对最后问题的答复。|
+--+---------------------------+
|0 |This is a test             |
+--+---------------------------+
   test -: xml2j j2xml test
1

You have to write j2xml and xml in both in J and c#. BTW I would prefer using inverted table to process record set coming from sql sources.
   ifa test
+----+--------------------------------+
|42 0|对最后问题的答复。     |
|    |This is a test                  |
+----+--------------------------------+
   j2xml ifa test
<array>
 <rank>
  <dimension>2</dimension>
 </rank>
 <data>
  <array>
   <rank>
    <dimension>2</dimension>
   </rank>
   <data>
    <number>42 0</number>
   </data>
  </array>
  <array>
   <rank>
    <dimension>2</dimension>
    <dimension>14</dimension>
   </rank>
   <data>
    <uchar><![CDATA[
+VsAZw5U7pWYmIR2VHsNWQIwIAAgACAAIAAgAFQAaABpAHMAIABpAHMAIABhACAAdABlAHMAdAA= ]]></uchar>
   </data>
  </array>
 </data>
</array>

   xml2j j2xml ifa test
+----+--------------------------------+
|42 0|对最后问题的答复。     |
|    |This is a test                  |
+----+--------------------------------+

PS. in the above examples, CDATA is encoded in base64, but you may choose other methods.

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to