Uhm, it's a little hacky but you could replace the =
characters with a %
character and use NSString's stringByReplacingPercentEscapesUsingEncoding:
method. Otherwise, you could essentially split the string on the = characters, convert each element to a byte value (easily done using NSScanner), put the byte values into a C array, and use NSString's initWithBytes:length:encoding:
method.
Note that your example isn't technically in quoted-printable format, which specifies that a quoted-printable is a three character sequence consisting of an =
character followed by two hex digits.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…