Re: UTF-8 to UTF-8 conversion
Re: UTF-8 to UTF-8 conversion
- Subject: Re: UTF-8 to UTF-8 conversion
- From: Frederick Cheung <email@hidden>
- Date: Thu, 28 Apr 2005 15:19:54 +0100
On 28 Apr 2005, at 11:01, 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...
Is there any mathematical or programmatical way to calculate the
corresponding character in utf-8 (here : 0x65 0xCC 0x80 -> 0xC3 0xA8)
to "simplify" the string?
I know I could build the whole table, but that's roughly 50 chars
times 16 diacritic marks I have to use, which is ~ 10^27 combinations.
How about the CFStringNormalize function ?
Fred
_______________________________________________
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