|
Hi,
The folowing program running on Solaris2.8 is
producing 'nil' output after encoding the String to
UFT8...
GNUstep is fully configured with libiconv and
Unicode.m file has been modified to accomodate UCS-2 encoding..
FYI: The same program is working fine on
NT/webojects3.5
#import <Foundation/Foundation.h>
int main (int argc, const char *argv[]){ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *aString = @"Hello---@˜pP-l�&�"; NSString *bString = nil; NSData *stringData; NSLog(@"the Initial String = %@",aString); stringData = [aString dataUsingEncoding: NSUTF8StringEncoding]; NSLog(@"the Second data = %@",stringData); bString = [[NSString alloc] initWithData:stringData encoding:NSUTF8StringEncoding]; NSLog(@"the Third String = %@",bString); [pool release]; exit(0); } Any help in overcoming the problem is greatly appreciated..
Thanks kotesh |
- Re: UTF8 encoded object is becoming nil Kotesh
- Re: UTF8 encoded object is becoming nil Adam Fedor
- Re: UTF8 encoded object is becoming nil Kotesh
- Re: UTF8 encoded object is becoming nil Adam Fedor
