• 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
NSString Drawing Accents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString Drawing Accents


  • Subject: NSString Drawing Accents
  • From: Karl Goiser <email@hidden>
  • Date: Tue, 15 Apr 2003 09:12:22 +1000

Hello,

If I have an NSString containing what I presume is UTF-8 characters like accented letters and try to display it using the drawInRect method or even put it in a cell and try to draw it, I get a completely different string. Specifically, a single accented character will be displayed as two, one generally being a square root sign...

ProjectBuilder displays the data correctly in the editor if I put the string into an @"" style string.

Terminal displays the string correctly if I do a 'more' on the data in a file.


I have an idea that the string is correct UTF-8, but that the draw methods don't want to draw them correctly.


Is there a step I am missing?


Thanks in advance,

Karl
_______________________________________________
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: Douglas Davidson <email@hidden>
    • Re: NSString Drawing Accents
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Crashing after loading a nib
  • Next by Date: Saving Custom Attributes
  • Previous by thread: Crashing after loading a nib
  • Next by thread: Re: NSString Drawing Accents
  • Index(es):
    • Date
    • Thread