encodeUTF8Char

Encodes a 32 bit character in UTF-8 format. Useful for translating between system and application level stuff.

@nogc @safe pure nothrow
char[4]
encodeUTF8Char
(
dchar c
)

Parameters

c dchar

The character to be encoded

Return Value

Type: char[4]

An encoded character sequence if the character could been interpreted as a valid character code, all zeros otherwise.

Meta