• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString Drawing Accents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSString Drawing Accents
      • From: Karl Goiser <email@hidden>
References: 
 >Re: NSString Drawing Accents (From: Karl Goiser <email@hidden>)

  • Prev by Date: Re: Newbie: Current Apps Directory
  • Next by Date: Re: NSString Drawing Accents
  • Previous by thread: Re: NSString Drawing Accents
  • Next by thread: Re: NSString Drawing Accents
  • Index(es):
    • Date
    • Thread