toUTF8

fnchar[] toUTF8(return scope char[] buf, dchar c) @safe pure nothrow @nogc
No documentation available for this declaration.
fnstring toUTF8(return scope string s) @safe pure nothrow

Encodes string s into UTF-8 and returns the encoded string.

fnstring toUTF8(const scope wchar[] s) @trusted pure

ditto

fnstring toUTF8(const scope dchar[] s) @trusted pure

ditto