• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Conflicting encodings issue in a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conflicting encodings issue in a Cocoa app


  • Subject: Conflicting encodings issue in a Cocoa app
  • From: "Ewan Delanoy" <email@hidden>
  • Date: Mon, 21 Apr 2008 15:35:43 +0200 (CEST)
  • Importance: Normal

                         Hello all,


in the user interface of my Cocoa app  I have a button with two
alternative titles,
one that I write in Interface Builder and the other appears on a line in
my code as
follows,


  [theButton setTitle:[NSString stringWithFormat:@"Put a n with a
tilde,like this : %c",0X00F1]];

Unfortunately, at runtime the exotic character is displayed incorrectly:
it appears as
a "breve" (Unicode character number 02D8 instead of 00F1).

 It seems clear that this is a conflicting encoding issue, but between
which encodings?
coming from where? (The default file encoding is "Unicode UTF-8" in the
Xcode preferences, and it seems there is no item to deal with encodings in
the Interface Builder's preferences)

 I thought at first that the problem came from my not localizing the Cocoa
project (I localize only at the very end), but even when I made the adhoc
localization the problem persisted.

                                                                Ewan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Conflicting encodings issue in a Cocoa app
      • From: Jens Alfke <email@hidden>
    • Re: Conflicting encodings issue in a Cocoa app
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: Complex data for webservices
  • Next by Date: Re: Conflicting encodings issue in a Cocoa app
  • Previous by thread: Re: Fullscreen mode detection from background
  • Next by thread: Re: Conflicting encodings issue in a Cocoa app
  • Index(es):
    • Date
    • Thread