Skip navigation.
 
mlRe: UTF-8 to UTF-8 conversion
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

Related mailsAuthorDate
mlUTF-8 to UTF-8 conversion Nicolas Zinovieff Apr 28, 12:01
mlRe: UTF-8 to UTF-8 conversion Frederick Cheung Apr 28, 16:19
mlRe: UTF-8 to UTF-8 conversion Nicolas Zinovieff Apr 28, 16:54
mlRe: UTF-8 to UTF-8 conversion Shawn Erickson Apr 28, 17:34