• 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: Getting a bullet into a NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a bullet into a NSString


  • Subject: Re: Getting a bullet into a NSString
  • From: John Stiles <email@hidden>
  • Date: Tue, 14 Mar 2006 10:54:02 -0800

I agree that @"whatever" should not be used (which is the gist of these threads).
But stringWithUTF8String should be fine, assuming your source file is actually UTF-8 encoded.
In practice it does work for me (and for the OP until he shuffled his files around, probably borking Xcode's "File Encoding" info).



On Mar 14, 2006, at 10:48 AM, mmalcolm crawford wrote:


On Mar 14, 2006, at 10:34 AM, John Stiles wrote:

You need to make sure Xcode has that file set to UTF8. Format menu -> File Encoding -> Unicode (UTF-8).
The techniques suggested by other posters will work no matter what your source file encoding is, so they might be preferable.

You should *not* use non-ASCII characters in source code.

See for example <http://lists.apple.com/archives/cocoa-dev/2002/Mar/ msg01075.html>, <http://lists.apple.com/archives/cocoa-dev/2005/Mar/ msg02226.html>, <http://lists.apple.com/archives/cocoa-dev/2005/Mar/ msg02234.html>, and <http://lists.apple.com/archives/cocoa-dev/2005/ Oct/msg01321.html>.

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Getting a bullet into a NSString
      • From: mmalcolm crawford <email@hidden>
References: 
 >Getting a bullet into a NSString (From: Ben Lachman <email@hidden>)
 >Re: Getting a bullet into a NSString (From: John Stiles <email@hidden>)
 >Re: Getting a bullet into a NSString (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Getting a bullet into a NSString
  • Next by Date: Re: Getting a bullet into a NSString
  • Previous by thread: Re: Getting a bullet into a NSString
  • Next by thread: Re: Getting a bullet into a NSString
  • Index(es):
    • Date
    • Thread