Re: NSString and C string
Re: NSString and C string
- Subject: Re: NSString and C string
- From: Douglas Davidson <email@hidden>
- Date: Wed, 19 Feb 2003 11:20:40 -0800
On Wednesday, February 19, 2003, at 8:50 PM, Aidas Dailide wrote:
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?
Yes. Use UTF-8.
Douglas Davidson
_______________________________________________
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.