• 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: Mon, 14 Apr 2003 16:47:36 -0700

On Monday, April 14, 2003, at 4:12 PM, Karl Goiser wrote:

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...

Most likely the data is not correctly being imported into the NSString. Make sure that the NSString is being created with a method that specifies UTF-8. Compilers are not necessarily consistent about the encoding of non-ASCII strings specified as string literals in source code, so it may be best to store the string in a file, either as plain UTF-8, or as an entry in a .strings file.

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>
    • Is NSPrintSaveJob best way to create a PDF?
      • From: Ben Mackin <email@hidden>
References: 
 >NSString Drawing Accents (From: Karl Goiser <email@hidden>)

  • Prev by Date: Re: BSD sockets and Cocoa
  • Next by Date: Re: NSString Drawing Accents
  • Previous by thread: Re: NSString Drawing Accents
  • Next by thread: Is NSPrintSaveJob best way to create a PDF?
  • Index(es):
    • Date
    • Thread