• 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
Re: Diacritical characters (Umlaute) in Obj-C Source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Diacritical characters (Umlaute) in Obj-C Source


  • Subject: Re: Diacritical characters (Umlaute) in Obj-C Source
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sun, 25 Jan 2004 10:07:41 +0100

At 2:56 Uhr +0100 25.01.2004, Stefan Pantke wrote:
I need to find diacritical charactes (e.g. d (Umlaute)) and replace them in some
fashion.

XCode reports a

non-ASCII string in CFString .

Thus, I suppose, non-ascii characters are not allowed.

No. The C and ObjC language standards are defined as taking the ASCII character set. Anything else you may get in some compilers is pure luck.

How may I inter these special characters? By ASCII Code? Or
as simple C string - not as Obj-C @-string?

What you can do is put your Umlauts into a .strings file (which is required to be UTF-8, which covers all of Unicode, including Umlauts), and then fetch them out of there using NSLocalizedString. That's what I do, at least.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Diacritical characters (Umlaute) in Obj-C Source
      • From: Stefan Pantke <email@hidden>
References: 
 >Diacritical characters (Umlaute) in Obj-C Source (From: Stefan Pantke <email@hidden>)

  • Prev by Date: Re: [APP IDEA] Desktop Background Scripting
  • Next by Date: QT wrong load state
  • Previous by thread: Diacritical characters (Umlaute) in Obj-C Source
  • Next by thread: Re: Diacritical characters (Umlaute) in Obj-C Source
  • Index(es):
    • Date
    • Thread