• 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: Converting C strings into NSStrings (and vice versa)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting C strings into NSStrings (and vice versa)


  • Subject: Re: Converting C strings into NSStrings (and vice versa)
  • From: Tito Ciuro <email@hidden>
  • Date: Thu, 27 Apr 2006 07:55:43 -0700

Paolo,

On 27/04/2006, at 7:38, Paolo Bertani wrote:

Unfortunately if the c string contains characters like uppercase accented U (this is how it appears on Mac, on PC it's a lowercase accented u) the method returns nil!

Use the following methods:

+ (id)stringWithUTF8String:(const char *)bytes

- (const char *)UTF8String

- (id)initWithUTF8String:(const char *)bytes



-- Tito
_______________________________________________
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: Converting C strings into NSStrings (and vice versa)
      • From: Ondra Cada <email@hidden>
References: 
 >Converting C strings into NSStrings (and vice versa) (From: Paolo Bertani <email@hidden>)

  • Prev by Date: Re: New Dictionary
  • Next by Date: Re: Converting C strings into NSStrings (and vice versa)
  • Previous by thread: Converting C strings into NSStrings (and vice versa)
  • Next by thread: Re: Converting C strings into NSStrings (and vice versa)
  • Index(es):
    • Date
    • Thread