mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-10 10:55:08 +00:00
Monotone-Parent: 786be1077930a3e81cdf40e98c10118d781d5e23
Monotone-Revision: d24f07174457ea6b1b468933be949003bde413ed Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-04T15:19:58 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -425,7 +425,8 @@ static BOOL debugSoParts = NO;
|
||||
return @"message/rfc822";
|
||||
}
|
||||
|
||||
- (NSString *)contentAsString {
|
||||
- (NSString *) contentAsString
|
||||
{
|
||||
NSString *s;
|
||||
NSData *content;
|
||||
|
||||
@@ -434,8 +435,9 @@ static BOOL debugSoParts = NO;
|
||||
if ([content isKindOfClass:[NSException class]])
|
||||
return (id)content;
|
||||
|
||||
s = [[NSString alloc] initWithData:content
|
||||
encoding:NSISOLatin1StringEncoding];
|
||||
#warning the encoding here might be wrong...
|
||||
s = [[NSString alloc] initWithData: content
|
||||
encoding: NSUTF8StringEncoding];
|
||||
if (s == nil) {
|
||||
[self logWithFormat:
|
||||
@"ERROR: could not convert data of length %d to string",
|
||||
|
||||
Reference in New Issue
Block a user