Re: NSString Drawing Accents
Re: NSString Drawing Accents
- Subject: Re: NSString Drawing Accents
- From: Douglas Davidson <email@hidden>
- Date: Tue, 15 Apr 2003 14:07:42 -0700
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.