Re: NSString Drawing Accents
Re: NSString Drawing Accents
- Subject: Re: NSString Drawing Accents
- From: Karl Goiser <email@hidden>
- Date: Wed, 16 Apr 2003 07:14:55 +1000
Thank you Douglas!
On Wednesday, April 16, 2003, at 07:07 AM, Douglas Davidson wrote:
>
>
On Monday, April 14, 2003, at 9:19 PM, Karl Goiser wrote:
>
>
> I am reading the putative UTF-8 data in from a file using
>
> stringWithContentsOfFile. The thing is is that when I draw the
>
> string, it all looks the same - with square root signs.
>
>
There's your problem. stringWithContentsOfFile: doesn't specify
>
UTF-8, and the kit can't guess it for you without a BOM. Try loading
>
the file as an NSData, then converting it to a string, specifying
>
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.