C# 클래스 RemObjects.InternetPack.Messages.Mime.Decode.EncodedWord

Utility class for dealing with encoded word strings

EncodedWord encoded strings are only in ASCII, but can embed information about characters in other character sets.

It is done by specifying the character set, an encoding that maps from ASCII to the correct bytes and the actual encoded String.

It is specified in a format that is best summarized by a BNF:
"=?" character_set "?" encoding "?" encoded-text "?="
파일 보기 프로젝트 열기: remobjects/internetpack 1 사용 예제들

공개 메소드들

메소드 설명
Decode ( String encodedWords ) : String

Decode text that is encoded with the EncodedWord encoding.

This method will decode any encoded-word found in the String.
All parts which is not encoded will not be touched.

From RFC 2047:
Generally, an "encoded-word" is a sequence of printable ASCII characters that begins with "=?", ends with "?=", and has two "?"s in between. It specifies a character set and an encoding method, and also includes the original text encoded as graphic ASCII characters, according to the rules for that encoding method. Example:
=?ISO-8859-1?q?this=20is=20some=20text?= other text here

See RFC 2047 section 2 "Syntax of encoded-words" for more details

메소드 상세

Decode() 공개 정적인 메소드

Decode text that is encoded with the EncodedWord encoding.

This method will decode any encoded-word found in the String.
All parts which is not encoded will not be touched.

From RFC 2047:
Generally, an "encoded-word" is a sequence of printable ASCII characters that begins with "=?", ends with "?=", and has two "?"s in between. It specifies a character set and an encoding method, and also includes the original text encoded as graphic ASCII characters, according to the rules for that encoding method. Example:
=?ISO-8859-1?q?this=20is=20some=20text?= other text here
See RFC 2047 section 2 "Syntax of encoded-words" for more details
If is
public static Decode ( String encodedWords ) : String
encodedWords String Source text. May be content which is not encoded.
리턴 String