toUTF8
fn
string 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
s | the string to encode |
Returns
A UTF-8 string
See Also
For a lazy, non-allocating version of these functions, see byUTF.