• 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
NSString and C string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString and C string


  • Subject: NSString and C string
  • From: Aidas Dailide <email@hidden>
  • Date: Wed, 19 Feb 2003 20:50:40 -0800

Hi,

My application has to do some conversion from C string to NSString and backwards. The main problem is that those C strings contains characters from Latin 1 and 2 encodings. It is impossible to convert NSString to C string by doing cString function ,because it doesn't work. lossyCString works, but it looses all characters from Latin 1 and 2 encodings. Is there any way to properly convert NSString to C string and backwards without loosing some characters?

Thank you,

Aidas
_______________________________________________
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:
    • Cocoa and Java and Menus Oh my...
      • From: Mike Jackson <email@hidden>
    • Re: NSString and C string
      • From: Chris Ridd <email@hidden>
    • Re: NSString and C string
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Application Security...
  • Next by Date: Re: formatting NSDate
  • Previous by thread: Can't cache image ?
  • Next by thread: Re: NSString and C string
  • Index(es):
    • Date
    • Thread