What is the type of xmlString? Is it a C string? I.e. a NUL-terminated
char* pointer? If so, that code is going to crash very quickly.

On Mon, Jan 25, 2016 at 10:32 AM, Ján Adamčák <[email protected]> wrote:

> Thanks.
>
> My first idea use demo function println(x::UTF8String) at julia side:
>
> jl_function_t *func  = jl_get_function(jl_base_module, "println");
> jl_call1(func, (jl_value_t*) xmlString);
>
> but in my second idea i plan return UTF8String back to C/C#...
>
> jl_function_t *func  = jl_get_function(jl_current_module,
> "do_some_stuf_with_utf8");
> jl_value_t* ret = jl_call1(func, (jl_value_t*) xmlString);
>
>
>
>
> Dňa pondelok, 25. januára 2016 16:10:34 UTC+1 Stefan Karpinski napísal(-a):
>>
>> Wrapping the array of bytes in a UTF8String object should do it. It's not
>> quite clear what you mean by "transfer".
>>
>> On Monday, January 25, 2016, Ján Adamčák <[email protected]> wrote:
>>
>>> Hi guys,
>>>
>>> Have you any idea, how to transfer utf8 string from C/C# code to Julia
>>> code?
>>>
>>> I tried to find it in manual page
>>> http://docs.julialang.org/en/latest/manual/embedding/
>>> but I haven't any information
>>>
>>> Thanks for your help ;)
>>>
>>

Reply via email to