FROM : Shawn Erickson
DATE : Thu Apr 28 17:34:58 2005
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
DATE : Thu Apr 28 17:34:58 2005
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
| Related mails | Author | Date |
|---|---|---|
| Nicolas Zinovieff | Apr 28, 12:01 | |
| Frederick Cheung | Apr 28, 16:19 | |
| Nicolas Zinovieff | Apr 28, 16:54 | |
| Shawn Erickson | Apr 28, 17:34 |






Cocoa mail archive

