• 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: Unicode chars in string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode chars in string


  • Subject: Re: Unicode chars in string
  • From: Tom Davie <email@hidden>
  • Date: Mon, 09 Sep 2013 09:54:12 +0200

On 9 Sep 2013, at 09:13, Damien Cooke <email@hidden> wrote:

> Hi all,
> I am pulling my hair out here trying to replace the unicode (r) symbol with \\00ea in a string.  Is there a way of doing this as the NSString is a unicode String so it is interpreting it.  As convenient that might be to most people it is killing me here.

NSStrings already support unicode quite happily.  clang will even let you use unicode directly in the source, so [string stringByReplacingOccurancesOfString:@“r” withString:@“somethingElse”] will work happily, as will [string stringByReplacingOccurancesOfString:@“→” withString:@“⤜”].

Tom Davie
_______________________________________________

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: Unicode chars in string
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Unicode chars in string (From: Damien Cooke <email@hidden>)

  • Prev by Date: Re: ARC vs Manual Reference Counting
  • Next by Date: Re: ARC vs Manual Reference Counting
  • Previous by thread: Unicode chars in string
  • Next by thread: Re: Unicode chars in string
  • Index(es):
    • Date
    • Thread