Monotone-Parent: 9c7891b3f8128bdcbff88f67fa3b7393e15a40ea

Monotone-Revision: f8764bb1be122e1abcfc552aabd04eda662fc647

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-02-15T21:06:46
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-02-15 21:06:46 +00:00
parent a5a81a1ccb
commit a3520940e1
1 changed files with 5 additions and 5 deletions

View File

@ -122,17 +122,17 @@
}
charset = [(NSDictionary *)
[(NSDictionary *)[self bodyInfo] objectForKey:@"parameterList"]
objectForKey:@"charset"];
[(NSDictionary *)[self bodyInfo] objectForKey:@"parameterList"]
objectForKey:@"charset"];
charset = [charset lowercaseString];
// TODO: properly decode charset, might need to handle encoding?
if ([charset length] > 0) {
s = [NSString stringWithData:content usingEncodingNamed:charset];
s = [NSString stringWithData: content usingEncodingNamed: charset];
}
else {
s = [[NSString alloc] initWithData:content encoding:NSUTF8StringEncoding];
s = [[NSString alloc] initWithData: content encoding: NSUTF8StringEncoding];
s = [s autorelease];
}