---------- Forwarded message ----------
Date: Fri, 14 Sep 2001 17:19:28 +0530
From: Kotesh <kotesh@orillion.com>
To: Adam Fedor <fedor@doc.com>
Cc: Nicola Pero <nicola@brainstorm.co.uk>
Subject: UTF8 support...
HI,
I am trying to execute the following code snippet , but I am getting
nil as an out put .
I have installed libiconv package too..
#import <Foundation/Foundation.h>
int main (int argc, const char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString *test = @"yes";
NSData * utf8data = [test dataUsingEncoding:NSUTF8StringEncoding];
NSLog(@"Am I Lucky--->= %@",utf8data);
[pool release];
exit(0);
}
Please suggest me the requirements for making data encoded in UTF8 ..