From 3e0ed926b2280e94306e76d829780062552d4c34 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 18 May 2009 21:58:11 -0400 Subject: [PATCH] We need to use UTF8 string encoding instead of ASCII because we're receiving XML. Socket code should be perfect now. * Source/SocketWrapper.m: (receive) --- Source/SocketWrapper.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SocketWrapper.m b/Source/SocketWrapper.m index f93d2f1..07b21ee 100644 --- a/Source/SocketWrapper.m +++ b/Source/SocketWrapper.m @@ -193,7 +193,7 @@ [self error:@"Socket closed or could not be read"]; return nil; } - NSString* temp = [NSString stringWithCString:buffer encoding:NSASCIIStringEncoding]; + NSString* temp = [NSString stringWithCString:buffer encoding:NSUTF8StringEncoding]; [string appendString:temp]; received += [temp length]; } -- 2.43.5