Re: Converting C strings into NSStrings (and vice versa)
Re: Converting C strings into NSStrings (and vice versa)
- Subject: Re: Converting C strings into NSStrings (and vice versa)
- From: Ondra Cada <email@hidden>
- Date: Thu, 27 Apr 2006 17:02:02 +0200
Ahem...
On 27.4.2006, at 16:55, Tito Ciuro wrote:
Use the following methods:
+ (id)stringWithUTF8String:(const char *)bytes
- (const char *)UTF8String
- (id)initWithUTF8String:(const char *)bytes
Only if the text is UTF-8, which, albeit definitely possible, I fear
is with "a text file produced on a Windows machine" pretty improbable.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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