toUTF8

fnstring toUTF8(S)(S s) if (isSomeFiniteCharInputRange!S)

Encodes the elements of s to UTF-8 and returns a newly allocated string of the elements.

Parameters

sthe string to encode

Returns

A UTF-8 string

See Also

For a lazy, non-allocating version of these functions, see byUTF.