C# Class sidepop.Mime.QuotedPrintableEncoding

This class is based on the QuotedPrintable class written by Bill Gearhart found at http://www.aspemporium.com/classes.aspx?cid=6
ファイルを表示 Open project: Octopus-ITSM/sidepop Class Usage Examples

Public Methods

Method Description
Decode ( byte contentLines ) : byte[]

A quoted printable string is composed only of the ASCII characters 0 to 9, A to F and =. But in fact it represents an array of bytes from the range 0 to 255. These bytes will later be converted to a string using the character set specified in the Content-Type header.

DecodeSingleLine ( string content ) : byte[]

Private Methods

Method Description
DecodeLine ( string line ) : byte[]

Only a subset of the byte range from 0 to 255 could be represented as ASCII. The others (like 195) have been encoded using the following syntax =C3 (= followed by 2 hex characters). To decode a quoted printable string is to restore the original bytes by undoing that syntax. Example: A=C3BC will become [65,195,66,67]

Method Details

Decode() public static method

A quoted printable string is composed only of the ASCII characters 0 to 9, A to F and =. But in fact it represents an array of bytes from the range 0 to 255. These bytes will later be converted to a string using the character set specified in the Content-Type header.
public static Decode ( byte contentLines ) : byte[]
contentLines byte
return byte[]

DecodeSingleLine() public static method

public static DecodeSingleLine ( string content ) : byte[]
content string
return byte[]