Re: NSString Drawing Accents
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.