decodeToUtf8

fnstring decodeToUtf8(const(ubyte)[] bytes, XmlDetectedEncoding encoding) @safe

Decodes bytes into a UTF-8 string using the detected encoding.

Parameters

bytesInput byte sequence.
encodingDetected encoding.

Returns

Decoded UTF-8 string.