bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UTF8 support... (fwd)


From: Nicola Pero
Subject: UTF8 support... (fwd)
Date: Fri, 14 Sep 2001 12:54:16 +0100 (BST)

---------- 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 ..

thanks
kotesh







reply via email to

[Prev in Thread] Current Thread [Next in Thread]