Why does toUTF16z only work with UTF8 encoding?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun May 8 19:13:42 PDT 2011
I guess this should do it:
const(wchar)* toUTF16z(in dchar[] s)
{
return (toUTF16(s) ~ "\000").ptr;
}
More information about the Digitalmars-d-learn
mailing list