[Jprogramming] passing unicode argument to dll
bill lam
bbill.lam at gmail.com
Sun Sep 23 21:37:13 HKT 2007
First you have to find out whether syllabif expects utf8 or utf16 argument, then
program accordingly.
Kairit Sirts wrote:
> Hi!
>
> I pass an unicode argument to dll and I expect to get back also unicode argument, but the result is type of literal.
>
> word
> ┌──────┐
> │nägin│
> └──────┘
> datatype >word
> unicode
>
>
> script_z_ '~system\main\dll.ijs'
> syllabify=: >@{.@('C:\j601\addons\syllabif\syllabif.dll syllabify *c *c'&cd)
>
> NUL =. 0 { a.
> zerocut =: {.~i.&NUL
>
> syllabification =: 3 : 0
> 1!:44 'C:\j601\addons\syllabif'
> r =. syllabify < y
> aadress =. (;(0{r))
> syllables =. zerocut > memr aadress, 0, 128
> jaga syllables
> )
>
>
> The fragment " memr aadress, 0, 128" will give the result:
>
> memr aadress, 0, 128
> n-gin
>
> datatype memr aadress, 0, 128
> literal
>
> How to save the umlaut charaters while processing? It is not restricted to use umlaut characters in this dll. Strange thing is, that I have used this dll for this task already earlier and I can't recall there was such problem then
>
> Kairit Sirts
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
regards,
bill
More information about the Programming
mailing list