Re: Problem displaying accented characters in NSTextView
Re: Problem displaying accented characters in NSTextView
- Subject: Re: Problem displaying accented characters in NSTextView
- From: Chris Hanson <email@hidden>
- Date: Thu, 13 Oct 2005 23:36:37 -0700
On Oct 13, 2005, at 9:01 PM, Rick Hoge wrote:
All works fine, except that accented characters are not displayed
correctly. For example an accented e (é) appears as a square root
sign and a copyright symbol (é). I would have expected this to
'just work' but it doesn't!
Be sure to create the string you display in the NSTextView using the
correct string encoding. There are a wide variety of different
encodings that non-ASCII text can be stored in, with all sorts of
subtle and not-so-subtle differences between them.
I suspect the text is stored in the file using UTF-8 encoding but you
created a string from it using MacRoman encoding, or something similar.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden