[Top][All Lists]

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

Re: Summary: Unicode support on GNUstep

From: Dirk Theisen
Subject: Re: Summary: Unicode support on GNUstep
Date: Thu, 27 Mar 2003 21:57:58 +0100 (Europe/Berlin)
User-agent: Ginko/0.2.0-alpha-K (See <http://www.objectpark.org>)


NSData *data = [@"Höschler" dataUsingEncoding:NSUTF8StringEncoding];

And this works. I was a bit confused because
NSNonLossyASCIIStringEncoding worked on MacOSX. I don't really know
why. probbaly because of different default C string encondings  on
both machines.

This still assumes that your source is written in latin1 encoding. AFAIK, encoding 8bit chars as in latin1 mostly works, but is undefined (they should be quoted as shown in my other article).

So correct would probably to use NSLatin1StringEncoding and Latin1 source codes (or the unicode quoting).


reply via email to

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