bug-gnustep
[Top][All Lists]
Advanced

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

Re: UTF8 support... (fwd)


From: Richard Frith-Macdonald
Subject: Re: UTF8 support... (fwd)
Date: Fri, 14 Sep 2001 14:24:02 +0100


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

You need a working iconv installed before you contigure and build gnustep-base. Either a recent glibc (which contains iconv), or a standalone iconv library. Older versions of glibc contained buggy UTF8 support - which should work for
your little example, but fall over with large strings.




reply via email to

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