dstring text = "Hello"; const(dchar)* str = toUTFz!(const(dchar)*)(text); // passing it to C function prints Hello
However, I don't have the idea how can I go the other way. I tried several methods such as using to!dstring, toUTF32 etc which compiles successfully however printing them gives address of them instead of text.
Thanks, Danyal Zia
