virc.encoding

Module for handling low-level message encoding.

Members

Functions

toUTF8String
auto toUTF8String(immutable(ubyte)[] raw)

Decodes a byte array to a UTF-8 string. Old IRC clients don't use UTF-8, but it is a simple matter to detect and convert those strings. Lines truncated mid-codepoint by the protocol's line length will be treated as invalid UTF-8.

Meta