Monotone-Parent: 9c7891b3f8128bdcbff88f67fa3b7393e15a40ea
Monotone-Revision: f8764bb1be122e1abcfc552aabd04eda662fc647 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-02-15T21:06:46 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
a5a81a1ccb
commit
a3520940e1
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue