assert(toUTF([0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x2e]) == "Hello."); assert(toUTF([0x82, 0x67, 0x82, 0x85, 0x82, 0x8c, 0x82, 0x8c, 0x82, 0x8f, 0x81, 0x44]) == "Hello."); assert(toUTF!dstring([0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x2e]) == "Hello."d); assert(toUTF!dstring([0x82, 0x67, 0x82, 0x85, 0x82, 0x8c, 0x82, 0x8c, 0x82, 0x8f, 0x81, 0x44]) == "Hello."d); assert(toUTF!wstring([0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x2e]) == "Hello."w); assert(toUTF!wstring([0x82, 0x67, 0x82, 0x85, 0x82, 0x8c, 0x82, 0x8c, 0x82, 0x8f, 0x81, 0x44]) == "Hello."w);
Encodes an SJIS string as unicode.