mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-23 13:59:32 +00:00
Monotone-Parent: 9c7891b3f8128bdcbff88f67fa3b7393e15a40ea
Monotone-Revision: f8764bb1be122e1abcfc552aabd04eda662fc647 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-02-15T21:06:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user