jl_cstr_to_string() variant for wchar_t*

30 views
Skip to first unread message

Ján Adamčák

unread,
Oct 3, 2016, 4:03:53 AM10/3/16
to julia-users
Hi,

Is there any version of

jl_cstr_to_str()

for use with wchar_t*?

I try create a small wrapper processing windows wchar_t strings to Julia strings.

Thanks.

Isaiah Norton

unread,
Oct 3, 2016, 9:06:40 AM10/3/16
to julia...@googlegroups.com
The 'LegacyStrings' package has functions to convert utf16 (and utf32) strings.

Steven G. Johnson

unread,
Oct 3, 2016, 10:35:43 AM10/3/16
to julia-users
See the transcode function to convert wchar strings to/from Julia (UTF8) strings.

You only need the LegacyStrings package if you want to work with wchar strings without converting them.

Reply all
Reply to author
Forward
0 new messages