Hunny Software Library Reference

EncodedWord.QEncode Method 

Encodes a byte string with the Q encoding.

[Visual Basic]
Public Shared Function QEncode( _
   ByVal str As ByteString _
) As ByteString
[C#]
public static ByteString QEncode(
   ByteString str
);

Parameters

str
the string to encode

Return Value

the encoded string

Remarks

The Q encoding is a modified form the the quoted-printable encoding. In the Q encoding, white space characters, including the end of line characters, are not allowed. The space character (ASCII 32) may be encoded as an underscore character ('_', ASCII 95), and the underscore character itself is always encoded using the hexadecimal encoding form ("_" encoded as "=5F"). In addition, other special characters such as '?' must be encoded using the hexadecimal encoding.

See Also

EncodedWord Class | Hunny.Mime Namespace