Re: incompatible pointer type (was: Please help?)
Re: incompatible pointer type (was: Please help?)
- Subject: Re: incompatible pointer type (was: Please help?)
- From: Andreas Monitzer <email@hidden>
- Date: Fri, 22 Feb 2002 22:44:05 +0100
On Friday, February 22, 2002, at 07:18 , Joshua D. Orr wrote:
Another way to do it is to use the following method (with the encoding
type set for what you getting, a plain text source will work with the
this encoding):
[[NSString alloc] initWithData:theData encoding:NSASCIIStringEncoding];
It seems to work well for me. I use this to turn a donloaded NSData
html file into a NSString...
Note that for doing it right, you'd have to parse the HTTP-header to get
the proper encoding. ASCII might not be correct.
andy
_______________________________________________
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.