From a3520940e1416eabecd966d50a6fb5a64ecff67d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 15 Feb 2007 21:06:46 +0000 Subject: [PATCH] Monotone-Parent: 9c7891b3f8128bdcbff88f67fa3b7393e15a40ea Monotone-Revision: f8764bb1be122e1abcfc552aabd04eda662fc647 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-02-15T21:06:46 Monotone-Branch: ca.inverse.sogo --- UI/MailPartViewers/UIxMailPartViewer.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UI/MailPartViewers/UIxMailPartViewer.m b/UI/MailPartViewers/UIxMailPartViewer.m index 72ca9452e..bb988c403 100644 --- a/UI/MailPartViewers/UIxMailPartViewer.m +++ b/UI/MailPartViewers/UIxMailPartViewer.m @@ -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]; }