- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
if (_receivedData)
{
NSString* _str = [[NSString alloc]initWithData:_receivedData encoding:NSASCIIStringEncoding];
NSLog(@"urlData........%@",_str);
[_receivedData release], _receivedData = nil;
}
[_connection release], _connection = nil;
CFRunLoopStop(CFRunLoopGetCurrent());
}
当 NSLOG _str 不解码 MIME 消息的最后部分(打印???)时,我认为是 encode:NSASCIIStringEncoding 的问题。
我如何设置编码???