Despite the multitude of function selectors in u: verb,
it's not clear how it is possible to convert from UTF-8
to wchar (Unicode) in one step.

7 u: coverts to EITHER char OR wchar.

But it seems that a fairly common use is to supply wchar (Unicode)
argument to DLL call or to obtain a binary form of wchar
(which per se is not clear how to get: byte array of wchars),
where the argument is UTF-8, but could be ASCII, like word "Test".

But for word "Test", 7 u: does not work:

   datatype 7 u: 'Test'   NB. Western
literal
   datatype 7 u: 'Òåñò'   NB. Cyrillic
unicode

So the workaround is 4 u: 3 u: 7 u: (three verbs)

   datatype 4 u: 3 u: 7 u: 'Test'
unicode

   4 u: 3 u: 7 u: 'Òåñò'
Òåñò

Is this EITHER / OR in 7 u: really needed?

Why not just always yield wchar?



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to