discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Unicode and GNUstep (more info)


From: Pascal Bourguignon
Subject: Re: Unicode and GNUstep (more info)
Date: Fri, 10 May 2002 18:28:34 +0200 (CEST)

> From: Andreas Hoeschler <ahoesch@smartsoft.de>
> Date: Fri, 10 May 2002 16:26:26 +0200
> 
> Hi all,
> 
> the following program
> 
>         NSString *string = @"Höschler";
>         NSLog(@"char: %d", [string characterAtIndex:1]);
> 
> returns
> 
>       FBTest[12919] char: 246
> 
> on MacOSX which is correct and
> 
>       FBTest[3076] char: 154
> 
> which is incorrect. How can this be fixed?
> 
> Regards,
> 
>     Andreas
> 

What encoding do you use on GNUstep?

What encoding does MacOSX use?


In ISO-8859-1, "ö" is 246. So it seems that MacOSX uses ISO-8859-1.

In Macintosh encoding,  "ö" is 154. So it seems  that you're using the
Macintosh encoding.  Are you working with GNUstep on MacOSX ?  Perhaps
the default  encoding on MacOSX  is still the Macintosh  encoding, but
MacOSX works  with ISO-8859-1 (actually, OPENSTEP  works entirely with
UNICODE which is a superset of ISO-8859-1).



Or perhaps you mixed the results, and you have 246 on GNUstep which is
what I'd  expect, ISO-8859-1 on GNUstep,  and you have  154 on MacOSX,
which I would not be surprised to see, neither.


-- 
__Pascal_Bourguignon__             (o_ Software patents are endangering
() ASCII ribbon against html email //\ the computer industry all around
/\ and Microsoft attachments.      V_/ the world http://lpf.ai.mit.edu/
1962:DO5K=1.3   2001:my($f)=`fortune`;   http://petition.eurolinux.org/

You're a web designer?   Please read http://www.useit.com/alertbox/ !

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d? s++:++(+++)>++ a C+++  UB+++L++++$S+X++++>$ P- L+++ E++ W++
N++ o-- K- w------ O- M++$ V PS+E++ Y++ PGP++ t+ 5? X+ R !tv b++(+)
DI+++ D++ G++ e+++ h+(++) r? y---? UF++++
------END GEEK CODE BLOCK------





reply via email to

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