• 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: UTF-8 to UTF-8 conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UTF-8 to UTF-8 conversion


  • Subject: Re: UTF-8 to UTF-8 conversion
  • From: Shawn Erickson <email@hidden>
  • Date: Thu, 28 Apr 2005 08:34:58 -0700


On Apr 28, 2005, at 3:01 AM, Nicolas Zinovieff wrote:

Hi gang,

this is not purely cocoa related, but I'm having a hard time with some UTF-8 strings.
What I get is a string where all the marks are diacritic ones (e + ` = รจ), and when I hand them to the compositor for an insertion in a view, the styles get mixed up.
It looks like the diacritic "cancels" somehow italics and underlined, etc...


Thanks a lot for any insight.

I think you will need to better outline what you are doing, hopefully with code examples, since it is likely a quirk in your code or something you aren't correctly supporting. Of course you could also be hitting a framework bug... who knows.


For one how are you applying your style attributes to things in the string or text storage?

Consider the following...
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSString.html#//apple_ref/doc/uid/20000154/ rangeOfComposedCharacterSequenceAtIndex_>


Review the following if you haven't already...
<http://developer.apple.com/documentation/Cocoa/Conceptual/ TextStorageLayer/index.html>


-Shawn

_______________________________________________
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


References: 
 >UTF-8 to UTF-8 conversion (From: Nicolas Zinovieff <email@hidden>)

  • Prev by Date: KVO Key Reasoning
  • Next by Date: Re: NSTextView and layout manager speed (was: how to be efficient)
  • Previous by thread: Re: UTF-8 to UTF-8 conversion
  • Next by thread: NSMenu delegate broken?
  • Index(es):
    • Date
    • Thread