>
> ---------- Forwarded message ----------
> Date: Fri, 14 Sep 2001 17:19:28 +0530
> From: Kotesh <[EMAIL PROTECTED]>
> To: Adam Fedor <[EMAIL PROTECTED]>
> Cc: Nicola Pero <[EMAIL PROTECTED]>
> 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.


_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to