Function transcode

Converts a string from one encoding to another. Decoder and encoder are specified at compile time

string transcode(Decoder, Encoder) (
  string input
);

Examples

string s = transcode!(UTF16Decoder, UTF8Encoder)(input);