vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function decodeMessage

Decodes a message body according to the specified content transfer encoding ("Content-Transfer-Encoding" header).

string decodeMessage (
  const(ubyte[]) message_body,
  string content_transfer_encoding
) @safe;

The result is returned as a UTF-8 string.

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.